public IItemNode LoadFarmNode() { var spFarmNode = SPProvider.LoadFarmNode(); var node = ItemNode.Create(this, spFarmNode); node.IsExpanded = true; return(node); }
public static IItemNode Create(ITreeViewNodeProvider provider, ISPNode spNode) { var node = new ItemNode { NodeProvider = provider, SPNode = spNode }; return(node); }
public IEnumerable <IItemNode> LoadChildren(IItemNode parentNode) { parentNode.SPNode.LoadChildren(); return(parentNode.SPNode.Children.Select(spNode => ItemNode.Create(this, spNode))); }
public static IItemNode Create(ITreeViewNodeProvider provider, ISPNode spNode) { var node = new ItemNode { NodeProvider = provider, SPNode = spNode }; return node; }