Exemplo n.º 1
0
        public IItemNode LoadFarmNode()
        {
            var spFarmNode = SPProvider.LoadFarmNode();
            var node       = ItemNode.Create(this, spFarmNode);

            node.IsExpanded = true;
            return(node);
        }
Exemplo n.º 2
0
        public static IItemNode Create(ITreeViewNodeProvider provider, ISPNode spNode)
        {
            var node = new ItemNode
            {
                NodeProvider = provider,
                SPNode       = spNode
            };

            return(node);
        }
Exemplo n.º 3
0
 public IEnumerable <IItemNode> LoadChildren(IItemNode parentNode)
 {
     parentNode.SPNode.LoadChildren();
     return(parentNode.SPNode.Children.Select(spNode => ItemNode.Create(this, spNode)));
 }
Exemplo n.º 4
0
 public static IItemNode Create(ITreeViewNodeProvider provider, ISPNode spNode)
 {
     var node = new ItemNode
                    {
                        NodeProvider =  provider,
                        SPNode = spNode
                    };
     return node;
 }