Exemplo n.º 1
0
        /// <summary>
        /// Display a pciture on a given picturebox with the given specifications
        /// </summary>
        public void DisplayPics(object sender, f0t0page.DisplayPictureEventArgs e)
        {
            Image       pix        = e.Image.Image;
            IPictureBox pictureBox = sender as IPictureBox;

            pictureBox.Image = null;
            try
            {
                //Rectangle rectangle = ScaleToFit( e.Dimensions, pix);
                pictureBox.Show(e);
                this.UpdateText(e.Image.Name);
                if (showTinyImage)
                {
                    f0t0tab parent = ((f0t0tab)this.Parent);
                    parent.RemoveImage(this.ImageKey);
                    parent.AddImage(e.Image);
                    this.ImageKey = e.Image.Name;
                }
            }
            catch { return; }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Unload a picture
 /// </summary>
 /// <param name="sender"></param>
 public void UnloadPicture(object sender)
 {
     if (showTinyImage)
     {
         f0t0tab parent = ((f0t0tab)this.Parent);
         parent.RemoveImage(this.ImageKey);
         this.ImageKey = null;
         this.Text     = defaultText;
     }
     if (this.IsCloned)
     {
         this.RemoveClonedView();
     }
     if (this.mainPicBox.LoadedPicture != null)
     {
         this.mainPicBox.Unload();
     }
     if (loader != null)
     {
         loader.Clear();
     }
 }
Exemplo n.º 3
0
 public void SetFotoTab(f0t0tab parent)
 {
     base.Parent = parent;
 }