/// <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;

            return(copy);
        }
Exemple #2
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.UserName = this.UserName;
            copy.ShowMediaObjectMetadata = this.ShowMediaObjectMetadata;
            copy.EnableUserAlbum         = this.EnableUserAlbum;
            copy.UserAlbumId             = this.UserAlbumId;

            return(copy);
        }
        /// <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.UserName = this.UserName;
            copy.ShowMediaObjectMetadata = this.ShowMediaObjectMetadata;
            copy.EnableUserAlbum = this.EnableUserAlbum;
            copy.UserAlbumId = this.UserAlbumId;

            return copy;
        }
        /// <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;

            return copy;
        }
        private IUserGalleryProfile CreateDefaultProfile(int galleryId)
        {
            IUserGalleryProfile profile = new UserGalleryProfile(galleryId);
            profile.UserName = UserName;
            profile.ShowMediaObjectMetadata = false; // Redundant since this is the default value, but this is for clarity to programmer
            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;
        }