private void Construction(object obj, EventArgs arg) { treeView_Client.Nodes.Clear(); List <string> path = controller.Path; TreeAddNode createTree = new TreeAddNode(path); createTree.create_tree(treeView_Client); }
private void Construction() { if (this.treeView_Client.InvokeRequired) { ConstructionCallback d = new ConstructionCallback(Construction); this.Invoke(d, new object[] { }); } else { treeView_Client.Nodes.Clear(); List <string> path = controller.Path; TreeAddNode createTree = new TreeAddNode(path); createTree.create_tree(treeView_Client); } }