示例#1
0
        public void Build()
        {
            Cursor.Current = Cursors.WaitCursor;
            this.ImageList = Program.Window.SPMimageList;
            Nodes.Clear();
            BeginUpdate();
            TreeViewNodeSorter = new NodeSorter();

            ExplorerNodeBase root = null;
            root = new FarmNode(CurrentFarm);
            this.Nodes.Add(root);

            Sort();
            DefaultExpand(root);

            this.SelectedNode = root;

            EndUpdate();
            Cursor.Current = Cursors.Default;
        }
示例#2
0
        public void Build()
        {
            Cursor.Current = Cursors.WaitCursor;
            this.ImageList = Program.Window.SPMimageList;
            Nodes.Clear();
            BeginUpdate();
            TreeViewNodeSorter = new NodeSorter();

            ExplorerNodeBase root = null;

            root = new FarmNode(CurrentFarm);
            this.Nodes.Add(root);

            Sort();
            DefaultExpand(root);


            this.SelectedNode = root;

            EndUpdate();
            Cursor.Current = Cursors.Default;
        }