Example #1
0
        public virtual object Clone()
        {
            liteTile tile = new liteTile();

            tile.Type               = Type;
            tile.AutoNavigateUrl    = AutoNavigateUrl;
            tile.NavigateUrl        = NavigateUrl;
            tile.ImageUrl           = ImageUrl;
            tile.Status             = Status;
            tile.ImageCssClass      = ImageCssClass;
            tile.IdModifiedBy       = IdModifiedBy;
            tile.CommunityTypes     = CommunityTypes;
            tile.DefaultTranslation = (lm.Comol.Core.DomainModel.Languages.TitleDescriptionObjectTranslation)DefaultTranslation.Clone();
            tile.Id      = Id;
            tile.Deleted = Deleted;
            if (Translations != null)
            {
                tile.Translations = Translations.Where(t => t.Deleted == BaseStatusDeleted.None).Select(t => (liteTileTranslation)t.Clone()).ToList();
            }
            if (Assignments != null)
            {
                tile.Assignments = Assignments.Where(a => a.Deleted == BaseStatusDeleted.None).Select(a => (liteTileAssignment)a.Clone()).ToList();
            }
            if (Tags != null)
            {
                tile.Tags = Tags.Where(a => a.Deleted == BaseStatusDeleted.None).Select(a => (liteTileTagAssociation)a.Clone()).ToList();
            }
            if (SubItems != null)
            {
                tile.SubItems = SubItems.Where(a => a.Deleted == BaseStatusDeleted.None).Select(a => (liteTileItem)a.Clone()).ToList();
            }

            return(tile);
        }
Example #2
0
        public virtual object Clone()
        {
            liteTile tile = new liteTile();

            tile.Type               = Type;
            tile.Status             = Status;
            tile.DefaultTranslation = (lm.Comol.Core.DomainModel.Languages.TitleDescriptionObjectTranslation)DefaultTranslation.Clone();
            tile.Id      = Id;
            tile.Deleted = Deleted;
            if (Translations != null)
            {
                tile.Translations = Translations.Where(t => t.Deleted == BaseStatusDeleted.None).Select(t => (liteTileTranslation)t.Clone()).ToList();
            }
            if (SubItems != null)
            {
                tile.SubItems = SubItems.Where(a => a.Deleted == BaseStatusDeleted.None).Select(a => (liteTileItem)a.Clone()).ToList();
            }

            return(tile);
        }