Пример #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;
 }