protected virtual void CreateSelectItemTreeNode(RequestContext requestContext, Page page, List<PageItem> list) { var item = new PageItem(); item.Text = page.FriendlyName; item.Value = page.FullName; item.IsPublished = page.Published.HasValue ? page.Published.Value : false; list.Add(item); var children = ServiceFactory.PageManager.ChildPages(Site.Current, page.FullName, null); children.ForEach((p, index) => { CreateSelectItemTreeNode(requestContext, p, list); }); }
protected virtual void CreateSelectItemTreeNode(RequestContext requestContext, Page page, List <PageItem> list) { var item = new PageItem(); item.Text = page.FriendlyName; item.Value = page.FullName; item.IsPublished = page.Published.HasValue ? page.Published.Value : false; list.Add(item); var children = ServiceFactory.PageManager.ChildPages(Site.Current, page.FullName, null); children.ForEach((p, index) => { CreateSelectItemTreeNode(requestContext, p, list); }); }