Exemplo n.º 1
0
 public override bool Equals(Object obj)
 {
     //Check for null and compare run-time types.
     if (obj == null || GetType() != obj.GetType())
     {
         return(false);
     }
     if (obj is BasicContentData)
     {
         BasicContentData p = (BasicContentData)obj;
         return(this.Root_ContentID == p.Root_ContentID);
     }
     else
     {
         return(false);
     }
 }
		public static BasicContentData CreateBasicContentDataFromSiteNav(SiteNav c) {
			BasicContentData sn = null;
			if (c != null) {
				sn = new BasicContentData();
				sn.Root_ContentID = c.Root_ContentID;
				sn.Parent_ContentID = c.Parent_ContentID;
				sn.FileName = c.FileName;
				sn.TemplateFile = c.TemplateFile;
				sn.SiteID = c.SiteID;
				sn.PageActive = c.PageActive;
				sn.CreateDate = c.CreateDate;
				sn.GoLiveDate = c.GoLiveDate;
				sn.RetireDate = c.RetireDate;
				sn.ContentType = c.ContentType;
				sn.NavOrder = c.NavOrder;
			}

			return sn;
		}
Exemplo n.º 3
0
        public static BasicContentData CreateBasicContentDataFromSiteNav(SiteNav c)
        {
            BasicContentData sn = null;

            if (c != null)
            {
                sn = new BasicContentData();
                sn.Root_ContentID   = c.Root_ContentID;
                sn.Parent_ContentID = c.Parent_ContentID;
                sn.FileName         = c.FileName;
                sn.TemplateFile     = c.TemplateFile;
                sn.SiteID           = c.SiteID;
                sn.PageActive       = c.PageActive;
                sn.CreateDate       = c.CreateDate;
                sn.GoLiveDate       = c.GoLiveDate;
                sn.RetireDate       = c.RetireDate;
                sn.ContentType      = c.ContentType;
                sn.NavOrder         = c.NavOrder;
            }

            return(sn);
        }