示例#1
0
        void Quote_FormClosing(object sender, FormClosingEventArgs e)
        {
            Properties.Settings.Default.Save();

            try
            {
                _log.Stop();
                _ar.Stop();
                _tlt.Stop();
                _bf.Unsubscribe();
                _bf.Disconnect();
            }
            catch { }
        }
示例#2
0
 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 { }
 }