/// <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; } }