Пример #1
0
 private void stopBtn_Click(object sender, RoutedEventArgs e)
 {
     stateMngr.Stop();
     //cts.Cancel();
     //cts = new CancellationTokenSource();
     //Trace.Listeners.Clear();
     //runBtn.IsEnabled = true;
     //stopBtn.IsEnabled = false;
 }
Пример #2
0
 private void SetLoggerStatus()
 {
     if (LoggingStatus == LoggingStatus.Running)
     {
         stateMngr.Run();
     }
     else
     {
         stateMngr.Stop();
     }
 }