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;
 }
Example #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);
 }
 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));
 }
Example #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--;
		}
Example #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);
     }
 }
Example #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;
		}
Example #8
0
            private void ImageFailed(object sender, ExceptionRoutedEventArgs e)
            {
                _bitmapImage.ImageOpened -= ImageOpened;
                _bitmapImage.ImageFailed -= ImageFailed;

                _tcs.SetException(e.ErrorException);
                _handle.Free();
            }
Example #9
0
 private static void GetImageSourceImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
     var image = sender as Image;
     if (image != null)
     {
         image.Source = null;
         image.ImageFailed -= GetImageSourceImageFailed;
     }
 }
Example #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'));
     }
 }
Example #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);
            }
        }
Example #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();
        }
        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}";
        }
 private void image_SplashScreen_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
Example #15
0
 void mediaPlayer_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     try
     {
         SetNextMedia();
     }
     catch { }
 }
        private void pictureBoxWaveForm_ImageFailed(object sender, ExceptionRoutedEventArgs e)
        {

        }
 private void Media_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     Media.mylog.Error("Media_MediaFailed");
 }
Example #18
0
 private void DetailedCloseImageButton_ImageFailed( object sender, ExceptionRoutedEventArgs e )
 {
 }
		void ImageLoadFail(object sender, ExceptionRoutedEventArgs e)
		{
			if (ImageFailed != null)
				ImageFailed.Invoke(sender, e);
		}
Example #20
0
 private void littleHead_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     LOG.Info("LittleHead Failed: " + e.ErrorException.Message);
 }
Example #21
0
 private void facebook1_ImageFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     // TODO: Add event handler implementation here.
 }
Example #22
0
 private void localVideo_MediaFailed_1(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
     Debug.WriteLine("[MainPage] LocalVideo Failed: " + e.ErrorException.Message);
 }
 // 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";
 }
 private void MediaElement_MediaFailed(object sender, System.Windows.ExceptionRoutedEventArgs e)
 {
 }
Example #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);
 }
Example #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);
 }
Example #30
0
		void media_MediaFailed(object sender, ExceptionRoutedEventArgs e) {
			SendEvent(e.ToString());
		}
 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);
 }
Example #33
0
 private void frameGrab_ImageFailed(object sender, ExceptionRoutedEventArgs e)
 {
 }
		private void OnMediaFailed(object sender, ExceptionRoutedEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine("SoundManager: Media failed. {0}", e.ErrorException.Message);

			lock (_syncRoot)
			{
				_isPlaying = false;
			}
		}
Example #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;
 }
 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();
     }
      * */
 }
Example #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)
 {
 }
Example #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);
 }