예제 #1
0
 public dtoTileItemDisplay(liteTileItem item, Int32 idUserLanguage, Int32 idDefaultLanguage)
 {
     NavigateUrl = item.NavigateUrl;
     ToolTip     = item.GetTranslation(idUserLanguage, idDefaultLanguage);
     CssClass    = item.CssClass;
     Type        = item.Type;
 }
예제 #2
0
        public virtual object Clone()
        {
            liteTileItem clone = new liteTileItem();

            clone.Type        = Type;
            clone.CssClass    = CssClass;
            clone.ToolTip     = ToolTip;
            clone.NavigateUrl = NavigateUrl;
            if (Translations.Any())
            {
                clone.Translations = Translations.Where(t => t.Deleted == BaseStatusDeleted.None).Select(t => (liteTileItemTranslation)t.Clone()).ToList();
            }
            clone.Deleted = Deleted;
            clone.Id      = Id;
            return(clone);
        }