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; }
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; }
public frmPhotoAdd(PhotoGallery photoGallery) { InitializeComponent(); this.parentGallery = photoGallery; }
public frmAlbumAdd(PhotoGallery photoGallery) : this() { this.parentGallery = photoGallery; }