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 { } }