public void AddNode(NodeDisplayLevelType requiredlevel, ExplorerNodeBase node)
        {
            TreeViewExplorer exp = this.TreeView as TreeViewExplorer;

            int level  = (int)exp.DisplayLevel;
            int result = level & (int)requiredlevel;

            if (result >= 1)
            {
                this.Nodes.Add(node);
            }
        }
Example #2
0
        public void AddNode(NodeDisplayLevelType requiredlevel, ExplorerNodeBase node)
        {
            if (node.NewFeatureIn2010)
            {
                node.BackColor = Color.LightGray;
            }
            else
            {
                node.BackColor = Color.Empty;
            }

            TreeViewExplorer exp = this.TreeView as TreeViewExplorer;

            int level  = (int)exp.DisplayLevel;
            int result = level & (int)requiredlevel;

            if (result >= 1)
            {
                this.Nodes.Add(node);
            }
        }
Example #3
0
        public void AddNode(NodeDisplayLevelType requiredlevel, ExplorerNodeBase node)
        {
            TreeViewExplorer exp = this.TreeView as TreeViewExplorer;

            int level = (int)exp.DisplayLevel;
            int result = level & (int)requiredlevel;
            if (result >= 1)
            {
                this.Nodes.Add(node);
            }
        }
Example #4
0
        public void AddNode(NodeDisplayLevelType requiredlevel, ExplorerNodeBase node)
        {
            if (node.NewFeatureIn2010)
            {
                node.BackColor = Color.LightGray;
            }
            else
            {
                node.BackColor = Color.Empty;
            }

            TreeViewExplorer exp = this.TreeView as TreeViewExplorer;

            int level = (int)exp.DisplayLevel;
            int result = level & (int)requiredlevel;
            if (result >= 1)
            {
                this.Nodes.Add(node);
            }
        }