Esempio n. 1
0
        private IUserGalleryProfile CreateDefaultProfile(int galleryId)
        {
            IUserGalleryProfile profile = new UserGalleryProfile(galleryId);

            profile.UserAlbumId     = 0; // Redundant since this is the default value, but this is for clarity to programmer
            profile.EnableUserAlbum = Factory.LoadGallerySetting(galleryId).EnableUserAlbumDefaultForUser;

            return(profile);
        }
        /// <summary>
        /// Creates a new instance containing a deep copy of the items it contains.
        /// </summary>
        /// <returns>Returns a new instance containing a deep copy of the items it contains.</returns>
        public IUserGalleryProfile Copy()
        {
            IUserGalleryProfile copy = new UserGalleryProfile(GalleryId);

            copy.EnableUserAlbum = this.EnableUserAlbum;
            copy.UserAlbumId     = this.UserAlbumId;
            copy.MediaViewSize   = MediaViewSize;
            copy.SlideShowType   = SlideShowType;
            copy.SlideShowLoop   = SlideShowLoop;

            return(copy);
        }