private void handleImageFileSelected(object sender, FileSelectedEventArgs args)
        {
            NavigationController.PopToViewController(this, true);
            UIImage image = UIImage.FromFile(args.File);

            this.imageView.Image = image;
        }
		private void onImageFileSelected( string file )
		{
			if ( ImageFileSelected != null )
			{
				FileSelectedEventArgs args = new FileSelectedEventArgs();
				args.File = file;
				ImageFileSelected( this, args );
			}
		}
Пример #3
0
 private void onImageFileSelected(string file)
 {
     if (ImageFileSelected != null)
     {
         FileSelectedEventArgs args = new FileSelectedEventArgs();
         args.File = file;
         ImageFileSelected(this, args);
     }
 }
		void OnImageFileSelected( string file )
		{
			if (ImageFileSelected == null)
				return;

			var args = new FileSelectedEventArgs {
				File = file
			};

			ImageFileSelected (this, args);
		}
Пример #5
0
        void OnImageFileSelected(string file)
        {
            if (ImageFileSelected == null)
            {
                return;
            }

            var args = new FileSelectedEventArgs {
                File = file
            };

            ImageFileSelected(this, args);
        }
        void HandleMediaFileSelected(object sender, FileSelectedEventArgs args)
        {
            NavigationController.PopToViewController(this, true);

            try {
                var player = new MPMoviePlayerController(NSUrl.FromFilename(args.File))
                {
                    AllowsAirPlay = true
                };

                View.AddSubview(player.View);
                player.SetFullscreen(true, true);
                player.PrepareToPlay();
                player.Play();
            } catch (Exception ex) {
                string message = string.Format("Error during playback of {0}: {1}", Path.GetFileName(args.File), ErrorHandling.GetExceptionDetailedText(ex));
                LogMessage(message);
            }
        }
		void HandleImageFileSelected (object sender, FileSelectedEventArgs args)
		{
			NavigationController.PopToViewController (this,true);
			imageView.Image = UIImage.FromFile (args.File);
		}
		void HandleMediaFileSelected (object sender, FileSelectedEventArgs args)
		{
			NavigationController.PopToViewController (this,true);

			try {
				var player = new MPMoviePlayerController(NSUrl.FromFilename(args.File)) {
					AllowsAirPlay = true
				};

				View.AddSubview (player.View);
				player.SetFullscreen (true, true);
				player.PrepareToPlay ();
				player.Play ();
			} catch (Exception ex) {
				string message = string.Format ("Error during playback of {0}: {1}", Path.GetFileName(args.File), ErrorHandling.GetExceptionDetailedText(ex) );
				LogMessage (message);
			}
		}