public void Quit()
 {
     if (!timer.StopAndWait(500))
     {
         timer.Abort();
     }
 }
Beispiel #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();
     }
 }
Beispiel #3
0
        private void Dispatcher_ShutdownStarted(object sender, EventArgs e)
        {
            DisposeAudioComponents();

            if (!_microTimer.StopAndWait(1000))
            {
                _microTimer.Abort();
            }
        }
Beispiel #4
0
 public void Stop()
 {
     timer.StopAndWait();
 }