Esempio n. 1
0
 private void RecorderLogic_CurrentFrameChanged(object sender, CurrentFrameChangedEventArgs e)
 {
     try
     {
         Dispatcher.Invoke(() =>
         {
             viewModel.CurrentFrame = e.CurrentFrame;
         });
     }
     catch (TaskCanceledException)
     {
         // Exiting
     }
 }
 private void CurrentFrameChanged(object?sender, CurrentFrameChangedEventArgs e)
 {
     try
     {
         threadLogic.RunInUIThread(() =>
         {
             CurrentFrame = e.CurrentFrame;
         });
     }
     catch (TaskCanceledException)
     {
         // Exiting
     }
 }