Beispiel #1
0
 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);
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
        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";
            }
        }
Beispiel #5
0
 public void FillImages(ImageFactory imgFact)
 {
     this.imgFact = imgFact;
     FillImages();
 }