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

            if (!_microTimer.StopAndWait(1000))
            {
                _microTimer.Abort();
            }
        }
コード例 #4
0
 public void Stop()
 {
     timer.StopAndWait();
 }