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

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

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

			lock (_syncRoot)
			{
				_isPlaying = false;
			}
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
     }
      * */
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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 !");
 }
Ejemplo n.º 43
0
 void media_MediaFailed(object sender, ExceptionRoutedEventArgs e)
 {
     WriteDebug(e.ErrorException.Message);
     SendEvent("alert", e.ErrorException.Message);
 }