Пример #1
0
        public IItemNode LoadFarmNode()
        {
            var spFarmNode = SPProvider.LoadFarmNode();
            var node       = ItemNode.Create(this, spFarmNode);

            node.IsExpanded = true;
            return(node);
        }
Пример #2
0
        public static IItemNode Create(ITreeViewNodeProvider provider, ISPNode spNode)
        {
            var node = new ItemNode
            {
                NodeProvider = provider,
                SPNode       = spNode
            };

            return(node);
        }
Пример #3
0
 public IEnumerable <IItemNode> LoadChildren(IItemNode parentNode)
 {
     parentNode.SPNode.LoadChildren();
     return(parentNode.SPNode.Children.Select(spNode => ItemNode.Create(this, spNode)));
 }
Пример #4
0
 public static IItemNode Create(ITreeViewNodeProvider provider, ISPNode spNode)
 {
     var node = new ItemNode
                    {
                        NodeProvider =  provider,
                        SPNode = spNode
                    };
     return node;
 }