Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
 private void PipelineCompleted(object sender, PipelineCompletedEventArgs e)
 {
     Angry    = null;
     Disgust  = null;
     Fear     = null;
     Happy    = null;
     Neutral  = null;
     Sad      = null;
     Surprise = null;
 }
Exemple #3
0
        /// <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);
            }
        }
Exemple #4
0
        /// <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");
        }
Exemple #5
0
 /// <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);
 }
Exemple #6
0
 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;
 }
Exemple #10
0
 private void PipelineCompleted(object sender, PipelineCompletedEventArgs e)
 {
     Detected = false;
 }