void AddWeb(VWeb web) { if (web.ID == Guid.Empty) { web.ID = Guid.NewGuid(); } if (string.IsNullOrEmpty(web.Title)) { web.Title = "WebName" + web.ID.ToString().Substring(5); } web.ParentSite = this.ParentSite; web.ParentWeb = this; _Webs.Add(web); }
private void SetRootWeb(VWeb value) { value.ParentSite = this; value.ParentWeb = null; _RootWeb = value; }