/// <summary> /// Update the tabtext and image /// </summary> /// <param name="picturename">name of the picture</param> private void UpdateText(string picturename) { ImageObject clonePic = this.clonePicBox.LoadedPicture; FileInfo fi = new FileInfo(picturename); string tabText = fi.Name; string tooltip = fi.FullName; if (IsCloned && clonePic != null) { FileInfo fi2 = new FileInfo(clonePic.Name); tabText += " | " + fi2.Name; tooltip += "\n vs. " + fi2.FullName; } if (tabText.Length > textLength) { tabText = tabText.Substring(0, TextLength - 3); tabText += "..."; } this.Text = tabText; this.ToolTipText = tooltip; }
public DisplayPictureEventArgs(ImageObject image, Rectangle dimensions) { this.image = image; this.dimensions = dimensions; }
public DisplayPictureEventArgs(ImageObject image) { this.image = image; this.dimensions = new Rectangle(0, 0, image.Image.Width, image.Image.Height); }