public void Quit()
 {
     if (!timer.StopAndWait(500))
     {
         timer.Abort();
     }
 }
Esempio n. 2
0
 public void CloseTacticalMap()
 {
     // Stop the timer, wait for up to 1 sec for current event to finish,
     //  if it does not finish within this time abort the timer thread
     if (!crlRefreshMap.StopAndWait(1000))
     {
         crlRefreshMap.Abort();
     }
 }
Esempio n. 3
0
        private void Dispatcher_ShutdownStarted(object sender, EventArgs e)
        {
            DisposeAudioComponents();

            if (!_microTimer.StopAndWait(1000))
            {
                _microTimer.Abort();
            }
        }
Esempio n. 4
0
 public override void ExitThread()
 {
     _timer.Abort();
     _timer.Enabled = false;
 }