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); })); }
void z_ImageFailed(object sender, ExceptionRoutedEventArgs e) { e.Equals(1); }