void RecordMain_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Save(); _ta.Stop(); _tlt.Stop(); _ar.Stop(); }
void ASP_FormClosing(object sender, FormClosingEventArgs e) { if ((_resskinidx.Count > 0) && (MessageBox.Show("Save skins before quiting?", "Save skins", MessageBoxButtons.YesNo) == DialogResult.Yes)) { _saveskins_Click(null, null); } // if we're using another thread to process ticks, stop it if (Environment.ProcessorCount > 1) { _ar.Stop(); } // stop archiving ticks _ta.CloseArchive(); // if log file exists, close it if (_log != null) { _log.Close(); _log = null; } // save ASP properties Properties.Settings.Default.Save(); // shut down tradelink client try { tl.Disconnect(); } catch (TLServerNotFound) { } }
void ASP_FormClosing(object sender, FormClosingEventArgs e) { if (_resskinidx.Count > 0) { _saveskins_Click(null, null); } // if we're using another thread to process ticks, stop it if (Environment.ProcessorCount > 1) { _ar.Stop(); } // stop archiving ticks _ta.Stop(); // stop logging _log.Stop(); // save ASP properties Properties.Settings.Default.Save(); // shut down tradelink client try { tl.Disconnect(); } catch (TLServerNotFound) { } }
void Quote_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Save(); ar.Stop(); try { tl.Unsubscribe(); tl.Disconnect(); } catch (TLServerNotFound) { } }
void Quote_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Save(); try { _log.Stop(); _ar.Stop(); _tlt.Stop(); _bf.Unsubscribe(); _bf.Disconnect(); } catch { } }
void QuotopiaMain_FormClosing(object sender, FormClosingEventArgs e) { try { _go = false; if ((rmv != null) && !string.IsNullOrWhiteSpace(rdll) && !string.IsNullOrWhiteSpace(rname)) { Properties.Settings.Default.LastResponseDll = rdll; Properties.Settings.Default.LastResponseName = rname; } Properties.Settings.Default.LastViewName = lastview; Properties.Settings.Default.location = Location; Properties.Settings.Default.Save(); log.Stop(); _ar.Stop(); _tlt.Stop(); _bf.Unsubscribe(); _bf.Disconnect(); } catch { } }
public void StopTest() { ar.Stop(); }