/// <summary> /// <see cref="Pipeline_PipelineCompleted"/> is called when the pipeline finishes running /// </summary> /// <param name="sender">Object that sent this event</param> /// <param name="e">Pipeline event arguments. Primarily used to get any pipeline errors back.</param> private void Pipeline_PipelineCompleted(object sender, PipelineCompletedEventArgs e) { if (e.Errors.Count > 0) { MessageBox.Show("Error! " + e.Errors[0].Message); } }
private void PipelineCompleted(object sender, PipelineCompletedEventArgs e) { Angry = null; Disgust = null; Fear = null; Happy = null; Neutral = null; Sad = null; Surprise = null; }
/// <summary> /// Event handler for the <see cref="Pipeline.PipelineCompleted"/> event. /// </summary> /// <param name="sender">The sender which raised the event.</param> /// <param name="e">The pipeline completion event arguments.</param> private static void Pipeline_PipelineCompleted(object sender, PipelineCompletedEventArgs e) { Console.WriteLine("Pipeline execution completed with {0} errors", e.Errors.Count); // Prints all exceptions that were thrown by the pipeline if (e.Errors.Count > 0) { Console.WriteLine("Error: " + e.Errors[0].Message); } }
/// <summary> /// Pipeline completion method. /// </summary> private void PipelineCompletedMethod(object sender, PipelineCompletedEventArgs e) { if (e.Errors.Count > 0) { MessageBox.Show("Pipeline Completion Error: " + e.Errors[0].Message); } pipeline.PipelineCompleted -= PipelineCompletedMethod; waveOut?.Dispose(); mpeg4Writer?.Dispose(); waveWriter?.Dispose(); pipeline?.Dispose(); Console.WriteLine("DONE"); }
/// <summary> /// Event handler for the <see cref="Pipeline.PipelineCompleted"/> event. /// </summary> /// <param name="sender">The sender which raised the event.</param> /// <param name="e">The pipeline completion event arguments.</param> private static void Pipeline_PipelineCompleted(object sender, PipelineCompletedEventArgs e) { Console.WriteLine("Pipeline execution completed with {0} errors", e.Errors.Count); }
private void PipelineCompleted(object sender, PipelineCompletedEventArgs e) { display.Clear(); }
private void PipelineCompleted(object sender, PipelineCompletedEventArgs e) { X = null; Y = null; }
private void PipelineCompleted(object sender, PipelineCompletedEventArgs e) { Speech = string.Empty; }
private void PipelineCompleted(object sender, PipelineCompletedEventArgs e) { AngleXDeg = 0; AngleYDeg = 0; GazeAttentionStats = false; }
private void PipelineCompleted(object sender, PipelineCompletedEventArgs e) { Detected = false; }