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