예제 #1
0
 private void bs_ImageFailed(object sender, ExceptionRoutedEventArgs args)
 {
     FailedToLoad = true;
     Loader.AddLoadableException(new Exception("ImageSilverlight - Failed to load image."));
     if (loadedCallback != null) loadedCallback(this, false);
     loadedCallback = null;
 }
예제 #2
0
 private void SilverlightPlayer_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     tbMediaFailed.Text = e.ErrorException.Message;
     generalUpdateTimer.Stop();
     tbTimerEnabled.Text = generalUpdateTimer.IsEnabled.ToString();
     MessageBox.Show("Your firewall might block this media. Check your connection settings and restart this test. Error message = " + e.ErrorException.Message, "Unable to play streaming media.", MessageBoxButton.OK);
 }
예제 #3
0
 static void Image_ImageFailed([NotNull] object sender, ExceptionRoutedEventArgs e)
 {
     Contract.Requires(sender != null);
     var resourceKey = GetResourceKey((Image)sender);
     var message = e.ErrorException.Maybe().Return(ex => ex.Message, @"No exception");
     Trace.TraceError(string.Format(CultureInfo.InvariantCulture, "Load image with resource key '{0}' failed: {1}", resourceKey, message));
 }
예제 #4
0
		static void img_ImageFailed(object sender, ExceptionRoutedEventArgs e)
		{
			BitmapImage img = sender as BitmapImage;
			img.ImageFailed -= new EventHandler<ExceptionRoutedEventArgs>(img_ImageFailed);
			img.ImageOpened -= new EventHandler<RoutedEventArgs>(img_ImageOpened);
			loadCount--;
		}
예제 #5
0
 private void imageContent_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     var img = sender as Image;
     img.Opacity = 1;
     System.Windows.Media.Imaging.BitmapImage bm = new System.Windows.Media.Imaging.BitmapImage(new Uri(@"/Assets/Images/NoImage.png", UriKind.RelativeOrAbsolute));
     imageContent.Source = bm;
 }
 void element_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     if (MediaFailed != null)
     {
         MediaFailed(sender, e);
     }
 }
예제 #7
0
		private void player_MediaFailed(object sender, ExceptionRoutedEventArgs e) {
			stateDisplay.State=PlaybackState.Stopped;
			player.Source=null;
			if (server != null) { server.Stop(); server.Start(); }
			player.Source=playerSource;
			player.Play();
			stateDisplay.State=PlaybackState.Connecting;
		}
예제 #8
0
            private void ImageFailed(object sender, ExceptionRoutedEventArgs e)
            {
                _bitmapImage.ImageOpened -= ImageOpened;
                _bitmapImage.ImageFailed -= ImageFailed;

                _tcs.SetException(e.ErrorException);
                _handle.Free();
            }
예제 #9
0
 private static void GetImageSourceImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     var image = sender as Image;
     if (image != null)
     {
         image.Source = null;
         image.ImageFailed -= GetImageSourceImageFailed;
     }
 }
예제 #10
0
 /// <summary>
 /// 文件载入失败,播放默认的播放列表
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mediaElement1_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     try
     {
         playDefautlVideo();
     }
     catch (Exception ex)
     {
         SeatManage.SeatManageComm.WriteLog.Write(ex.Message.TrimEnd('\0'));
     }
 }
예제 #11
0
        public void ItemImage_ImageFailed(object o, ExceptionRoutedEventArgs e)
        {
            ItemImage.ImageFailed -= new EventHandler<ExceptionRoutedEventArgs>(ItemImage_ImageFailed);
#if DEBUG
            //TalentImage_ImageFailed2(o, e); // Tell me what happened
            //TalentImage.ImageFailed += new EventHandler<ExceptionRoutedEventArgs>(TalentImage_ImageFailed2);
#endif
            // Getting the Image from the Armory failed, lets try another source
            if (itemInstance != null)
            {
                ItemImage.Source = Icons.AnIcon(ItemInstance.Item.IconPath);
            }
            else if (NonItemImageSource != null)
            {
                ItemImage.Source = Icons.AnIcon(NonItemImageSource);
            }
        }
예제 #12
0
        private void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {
            Image img = sender as Image;
            RotateTransform rotateTransform = img.RenderTransform as RotateTransform;

            // Create and define animation
            DoubleAnimation anima = new DoubleAnimation();
            anima.From = 0;
            anima.To = 360;
            anima.Duration = new Duration(TimeSpan.FromSeconds(0.5));

            // Set attached properties
            Storyboard.SetTarget(anima, rotateTransform);
            Storyboard.SetTargetProperty(anima, new PropertyPath(RotateTransform.AngleProperty));

            // Create storyboard, add animation, and fire it up!
            Storyboard storyboard = new Storyboard();
            storyboard.Children.Add(anima);
            storyboard.Begin();
        }
예제 #13
0
        private void MediaElementOnMediaFailed(object sender, ExceptionRoutedEventArgs args)
        {
            if (_textBlockError == null) {
                _textBlockError = new TextBlock {
                    Foreground = Brushes.White,
                    FontSize = 14,
                    Margin = new Thickness(2),
                    HorizontalAlignment = HorizontalAlignment.Left,
                    VerticalAlignment = VerticalAlignment.Top,
                    TextWrapping = TextWrapping.WrapWithOverflow,
                    Effect = new DropShadowEffect {
                        ShadowDepth = 0,
                        Color = Colors.Black,
                        BlurRadius = 8
                    }
                };
                ((Grid) Content).Children.Add(_textBlockError);
            }

            _textBlockError.Text = $"Playing {_mediaElement.Source} failed.\n{args.ErrorException.Message}";
        }
예제 #14
0
 private void image_SplashScreen_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
예제 #15
0
 void mediaPlayer_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     try
     {
         SetNextMedia();
     }
     catch { }
 }
        private void pictureBoxWaveForm_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {

        }
예제 #17
0
 private void Media_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     Media.mylog.Error("Media_MediaFailed");
 }
예제 #18
0
 private void DetailedCloseImageButton_ImageFailed( object sender, ExceptionRoutedEventArgs e )
 {
 }
예제 #19
0
		void ImageLoadFail(object sender, ExceptionRoutedEventArgs e)
		{
			if (ImageFailed != null)
				ImageFailed.Invoke(sender, e);
		}
예제 #20
0
 private void littleHead_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     LOG.Info("LittleHead Failed: " + e.ErrorException.Message);
 }
예제 #21
0
 private void facebook1_ImageFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     // TODO: Add event handler implementation here.
 }
예제 #22
0
 private void localVideo_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine("[MainPage] LocalVideo Failed: " + e.ErrorException.Message);
 }
예제 #23
0
 // Echec de l'ouverture de la vidéo
 private void ME_VideoSon_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     LBL_Message.Text = "Le média n'a pas pu être ouvert";
 }
예제 #24
0
 private void MediaElement_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
 }
예제 #25
0
 private void bigHead_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     LOG.Error("BigHead Failed: " + e.ErrorException.Message);
 }
 private void MainMedia_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     PauseAll();
 }
 private void littleHead_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine("[CallStatusPage] LittleHead Failed: " + e.ErrorException.Message);
 }
예제 #28
0
 private void ml_main_MediaFailed(object sender, ExceptionRoutedEventArgs e) {
     lv_playlist.Items.Remove(lv_playlist.SelectedItem);
     MessageBox.Show("Media loading unsuccessful. " + e.ErrorException.Message);
 }
 private void MediaElement_OnMediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     MessageBox.Show(e.ErrorException.Message);
 }
예제 #30
0
		void media_MediaFailed(object sender, ExceptionRoutedEventArgs e) {
			SendEvent(e.ToString());
		}
예제 #31
0
 private void mediaPlayer_MediaFailed(object sender,
                                      System.Windows.ExceptionRoutedEventArgs e)
 {
     MessageBox.Show("Media Failed: " + e.ErrorException.Message);
 }
 private void mediaElement_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     MessageBox.Show(e.ErrorException.Message, "Media Failure", MessageBoxButton.OK);
 }
예제 #33
0
 private void frameGrab_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
예제 #34
0
		private void OnMediaFailed(object sender, ExceptionRoutedEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine("SoundManager: Media failed. {0}", e.ErrorException.Message);

			lock (_syncRoot)
			{
				_isPlaying = false;
			}
		}
예제 #35
0
 private void procImage_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     Console.Write("procImage_ImageFailed exception called! Any idea what caused that? " + e);
 }
 private void vidFull_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     PlayPanel.Visibility = Rsc.Collapsed;
     txImgDetails.Text    = txImgDetails.Text + "\r\n" + "\r\nERROR: " + e.ErrorException.Message;
 }
예제 #37
0
 private void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     countErrors++;
     //Esto esta haciendo que se cierre la ventana porque no encuentra las imágenes
     /*
     if (countErrors == 2)
     {
         this.Close();
     }
      * */
 }
예제 #38
0
 private void Screen_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     ThumbnailCanvas.Background = csScreen.Background = new SolidColorBrush(Common.StringToColor(_CurrentScreen.BackColor, Color.FromArgb(0xff, 0xF5, 0xF5, 0xDC)));
 }
 private void Image1_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     MessageBox.Show("Error Sucker");
 }
 private void image1_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
예제 #41
0
 private void localVideo_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     Logger.Err("[InCall] LocalVideo Failed: " + e.ErrorException.Message);
 }
 private void player_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("MEDIA FAILED !");
 }
 void media_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     WriteDebug(e.ErrorException.Message);
     SendEvent("alert", e.ErrorException.Message);
 }