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