예제 #1
0
        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);
            }
        }
예제 #2
0
 public DataTreeItem(string name, nHydrate.DataImport.ImportStateConstants state)
     : this(name)
 {
     this.State = state;
 }
예제 #3
0
 public DataTreeItem(string name, nHydrate.DataImport.ImportStateConstants state)
     : this(name)
 {
     this.State = state;
 }