Пример #1
0
 public WebsitePage(WebsitePage other)
 {
     Name                 = other.Name;
     PageType             = other.PageType;
     ReportName           = other.ReportName;
     Audience             = other.Audience;
     Zones                = new List <WebsitePageZone>(other.Zones);
     TemplateRelativePath = other.TemplateRelativePath;
     PublishRelativePath  = other.PublishRelativePath;
     Url        = other.Url;
     IsEditable = other.IsEditable;
 }
Пример #2
0
 public void DeepAssignmentFrom(WebsitePage other)
 {
     Name       = other.Name;
     PageType   = other.PageType;
     ReportName = other.ReportName;
     Audience   = other.Audience;
     Zones.DeepAssignmentFrom(
         other.Zones,
         (c, oc) => c.Name == oc.Name);
     TemplateRelativePath = other.TemplateRelativePath;
     PublishRelativePath  = other.PublishRelativePath;
     Url        = other.Url;
     IsEditable = other.IsEditable;
 }
Пример #3
0
        public WebsitePage DeepClone()
        {
            var clone = new WebsitePage();

            clone.Id                   = Id;
            clone.Name                 = Name;
            clone.PageType             = PageType;
            clone.ReportName           = ReportName;
            clone.Audience             = Audience;
            clone.Zones                = Zones.DeepClone();
            clone.TemplateRelativePath = TemplateRelativePath;
            clone.PublishRelativePath  = PublishRelativePath;
            clone.Url                  = Url;
            clone.IsEditable           = IsEditable;

            return(clone);
        }