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