Пример #1
0
 private void Media_MediaFailed(object sender, ExceptionRoutedEventArgs ex)
 {
     tipsLabel.Dispatcher.Invoke(new Action(() =>
     {
         if (ex.Equals("BadDeviceId calling waveOutOpen"))
         {
             tipsLabel.Content = "音频输出设备异常";
         }
         else
         {
             tipsLabel.Content = ex;
         }
         Media.mylog.Error(VIDTextBox.Text.Trim() + "  PlayVideo" + "  ex:" + ex);
     }));
 }
Пример #2
0
 void z_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     e.Equals(1);
 }