public override bool GetChildren(GetChildrenDelegate callback, bool async) { Assert.ArgumentNotNull(callback, nameof(callback)); var result = new List <BaseSiteTreeViewItem>(); var children = Site.DataService.GetRootItems(DatabaseUri).ToList(); if (!children.Any()) { return(false); } foreach (var child in children) { var item = new ItemTreeViewItem(child); if (child.HasChildren) { item.MakeExpandable(); } result.Add(item); } callback(result); return(true); }
BaseTreeViewItem IScopeable.GetScopedTreeViewItem() { var result = new ItemTreeViewItem(Item); if (Item.HasChildren) { result.MakeExpandable(); } return(result); }