private void StopCapture() { SetBtnCaptureContent("Start Recording"); btnCapture.IsEnabled = true; btnEndSessionAndUpload.IsEnabled = true; btnEndAndStartNewSession.IsEnabled = true; BtnRedoSweep.Visibility = Visibility.Visible; _captureController.StopCapture(); btnCapture.Background = buttonBg; }
private void Stop_Click(object sender, RoutedEventArgs e) { new Thread(() => { _captureController.StopCapture(); }).Start(); }