private void RemoveAllNodes(TreeNodeCollection nodeList, nHydrate.DataImport.ImportStateConstants excludeType) { var delList = new List <TreeNode>(); foreach (TreeNode node in nodeList) { if (((DataTreeItem)node.Tag).State != excludeType) { delList.Add(node); } RemoveAllNodes(node.Nodes, excludeType); } foreach (var node in delList) { this.tvwAdd.Nodes.Remove(node); } }
public DataTreeItem(string name, nHydrate.DataImport.ImportStateConstants state) : this(name) { this.State = state; }