示例#1
0
 public void StopWorkerTimers()
 {
     StaticFileLogger.Current.LogEvent(GetType().Name, "StopWorkerTimers", null, EventLogEntryType.Information);
     foreach (TimerAndWorker timersAndWorker in _timersAndWorkers)
     {
         timersAndWorker.Timer.Stop();
     }
     _heartbeatTimerAndWorker.Timer.Enabled = false;
     CurrentBrowserUrlsTool.Stop();
 }
 private void MainForm_Disposed(object sender, EventArgs e)
 {
     CurrentBrowserUrlsTool.Stop();
     _communicationsManager.StopWorkerTimers();
     _communicationsManager.DisposeResources();
 }