public TreeNodeImage(Image img, ImageFactory imgFact) : base(img.Name, img, true, true, "Image", -1, DateTime.Now, true, false, false, false, false) { this.ImageIndex = TreeImages.Picture; this.SelectedImageIndex = TreeImages.Picture; this.img = img; this.imgFact = imgFact; this.img.NameChanged += new EventHandler(NameChanged); }
public Image(IDBLayer idb, long id, string name, long picId, EnumImageCategories imageType, bool deleteable) : base(idb, id) { this.name = name; this.picId = picId; this.imgFact = null; this.type = imageType; this.deleteable = deleteable; }
public TreeNodeImagesFolder(string name, DisksDB.DataBase.ImageFactory imgFact) : base(name, imgFact, false, false, "Images Folder", -1, DateTime.Now, false, false, false, false, true) { this.ImageIndex = TreeImages.Folder; this.SelectedImageIndex = TreeImages.FolderOpen; this.imgFact = imgFact; this.imgFact.ChildItemAdded += new EventHandlerItemAdded(ChildItemAdded); this.imgFact.ChildItemRemoved += new EventHandlerItemRemoved(ChildItemRemoved); }
public FormPropertiesImage(ImageFactory fact, Image selectedImage) { this.fact = fact; this.SelectedImage = selectedImage; InitializeComponent(); if (null != selectedImage) { this.textBoxTitle.Text = selectedImage.Name; this.textBoxDescription.Text = ""; this.pictureBox1.Image = selectedImage.Picture; this.Text = selectedImage.Name + " Properties"; ResizeImage(); } else { this.textBoxTitle.Text = ""; this.textBoxDescription.Text = ""; this.Text = "New Image"; } }
public void FillImages(ImageFactory imgFact) { this.imgFact = imgFact; FillImages(); }