Exemple #1
0
 public CatalogItemLink FullDeepCopy(CmsDataContext dc, int bannerID, CatalogItem item, byte position)
 {
     var tmp = new CatalogItemLink();
     tmp.DeepPropertiesCopy(item);
     tmp.Position = position;
     tmp.Visible = IsVisibleByBannerID(dc, bannerID, tmp.CatalogItemID, position);
     tmp.Banded = IsBanded(dc, bannerID, tmp.CatalogItemID, position);
     return tmp;
 }
Exemple #2
0
 public void DeepPropertiesCopy(CatalogItem catalogItem)
 {
     this.BannerCount = catalogItem.BannerCount;
     this.CatalogItemCode = catalogItem.CatalogItemCode;
     this.CatalogItemID = catalogItem.CatalogItemID;
     this.CatalogItemImageUrl = catalogItem.CatalogItemImageUrl;
     this.CatalogItemMenuType = catalogItem.CatalogItemMenuType;
     this.CatalogItemName = catalogItem.CatalogItemName;
     this.CatalogItemOpenNewWindow = catalogItem.CatalogItemOpenNewWindow;
     this.CatalogItemPath = catalogItem.CatalogItemPath;
     this.CatalogItemPriority = catalogItem.CatalogItemPriority;
     this.CatalogItemQueryString = catalogItem.CatalogItemQueryString;
     this.IsServicePage = catalogItem.IsServicePage;
     this.PageBody = catalogItem.PageBody;
     this.PageDescription = catalogItem.PageDescription;
     this.PageFooter = catalogItem.PageFooter;
     this.PageKeywords = catalogItem.PageKeywords;
     this.PageTitle = catalogItem.PageTitle;
     this.ParentItemID = catalogItem.ParentItemID;
 }