private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { string error = e.Error; Debug.WriteLine(error); //_outStream?.Dispose(); }
private static void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { Console.WriteLine("Recording failed with: " + e.Error); _stopWatch?.Stop(); Console.WriteLine(); Console.WriteLine("Press any key to exit"); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { Console.WriteLine("Rec_OnRecordingFailed"); string error = e.Error; _outStream?.Dispose(); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { string error = e.Error; stream?.Dispose(); MessageBox.Show("Error recordeando: " + error); }
private static void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { Console.WriteLine("Recording failed"); _isRecording = false; _stopWatch.Stop(); Console.WriteLine(); Console.WriteLine("Press any key to exit"); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, (Action)(() => { PauseButton.Visibility = Visibility.Hidden; RecordButton.Content = "Record"; RecordButton.IsEnabled = true; StatusTextBlock.Text = "Error:"; ErrorTextBlock.Visibility = Visibility.Visible; ErrorTextBlock.Text = e.Error; IsRecording = false; CleanupResources(); })); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { BeginInvoke(((Action)(() => { PauseButton.Visible = false; RecordButton.Text = "Record"; RecordButton.Enabled = true; labelStatus.Text = "Error:"; labelError.Visible = true; labelError.Text = e.Error; _isRecording = false; CleanupResources(); }))); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, (Action)(() => { PauseButton.Visibility = Visibility.Hidden; RecordButton.Content = "Record"; StatusTextBlock.Text = "Error:"; ErrorTextBlock.Visibility = Visibility.Visible; ErrorTextBlock.Text = e.Error; _outputStream?.Dispose(); _progressTimer?.Stop(); _progressTimer = null; _secondsElapsed = 0; IsRecording = false; ((Recorder)sender).OnRecordingComplete -= Rec_OnRecordingComplete; ((Recorder)sender).OnRecordingFailed -= Rec_OnRecordingFailed; ((Recorder)sender).OnStatusChanged -= _rec_OnStatusChanged; _rec?.Dispose(); _rec = null; })); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { string error = e.Error; _outStream?.Dispose(); }
private static void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { Console.WriteLine("Recording failed with: " + e.Error); _isRecording = false; _stopWatch?.Stop(); }
private static void OnRecordingFailed(object sender, RecordingFailedEventArgs e) { string error = e.Error; OutStream?.Dispose(); }
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { string error = e.Error; UpdateLogFile("Recorder through an error. Error message: " + error); }
private void Recorder_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { this._error = e.Error; this._status = ScreenRecordStatus.Fail; _isRecording = false; }
private static void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e) { string error = e.Error; }