Exemple #1
0
        public frmPhotoEdit(PhotoIcon photoToEdit, PhotoGallery parentGallery)
        {
            InitializeComponent();

            this.photo = photoToEdit;
            this.parentPhotoGallery = parentGallery;

            this.txtTitle.Text = photoToEdit.PhotoObject.vtitle;
            this.txtDescription.Text = photoToEdit.PhotoObject.vdescription;
            this.txtAuthor.Text = photoToEdit.PhotoObject.vauthor;
            this.pbPhoto.Image = photoToEdit.PhotoObject.vimageobject;
        }
Exemple #2
0
        public frmAlbumEdit(AlbumIcon albumToEdit, PhotoGallery parentPhotoGallery)
        {
            InitializeComponent();
            album = albumToEdit;

            this.txtTitle.Text = this.Text = album.Title;
            this.txtAuthor.Text = album.AlbumObject.vauthor;
            this.txtDescription.Text = album.AlbumObject.vdescribe;
            this.pbMainPhoto.Image = album.MainImage;

            parentGallery = parentPhotoGallery;
        }
Exemple #3
0
 public frmPhotoAdd(PhotoGallery photoGallery)
 {
     InitializeComponent();
     this.parentGallery = photoGallery;
 }
Exemple #4
0
 public frmAlbumAdd(PhotoGallery photoGallery)
     : this()
 {
     this.parentGallery = photoGallery;
 }