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); } }
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); } }