Example #1
0
 public void Stop()
 {
     try
     {
         _runbg = false;
         stiQuote.DeRegisterAllQuotes();
         stiBook   = null;
         stiOrder  = null;
         stiPos    = null;
         stiEvents = null;
         stiQuote  = null;
         if ((_bw.ThreadState != ThreadState.Aborted) || (_bw.ThreadState != ThreadState.Stopped))
         {
             try
             {
                 _bw.Abort();
             }
             catch { }
         }
     }
     catch (Exception ex)
     {
         debug(ex.Message + ex.StackTrace);
     }
     if (tl != null)
     {
         tl.Stop();
     }
 }
Example #2
0
 void SterMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         stiQuote.DeRegisterAllQuotes();
     }
     catch (Exception)
     {
         // incase stering was already closed
     }
 }
Example #3
0
 public void UnsubscribeAllQuotes()
 {
     _stiQuote.DeRegisterAllQuotes();
 }