Exemplo n.º 1
0
 void RecordMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     Properties.Settings.Default.Save();
     _ta.Stop();
     _tlt.Stop();
     _ar.Stop();
 }
Exemplo n.º 2
0
        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) { }
        }
Exemplo n.º 3
0
        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) { }
        }
Exemplo n.º 4
0
 void Quote_FormClosing(object sender, FormClosingEventArgs e)
 {
     Properties.Settings.Default.Save();
     ar.Stop();
     try
     {
         tl.Unsubscribe();
         tl.Disconnect();
     }
     catch (TLServerNotFound) { }
 }
Exemplo n.º 5
0
        void Quote_FormClosing(object sender, FormClosingEventArgs e)
        {
            Properties.Settings.Default.Save();

            try
            {
                _log.Stop();
                _ar.Stop();
                _tlt.Stop();
                _bf.Unsubscribe();
                _bf.Disconnect();
            }
            catch { }
        }
Exemplo n.º 6
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 { }
 }
Exemplo n.º 7
0
 public void StopTest()
 {
     ar.Stop();
 }