private void 编辑EToolStripMenuItem_Click(object sender, EventArgs e) { TreeNode node = treeView1.SelectedNode; while (node.Parent != null) { node = node.Parent; } NewRoot root = new NewRoot(node.Text); root.ShowDialog(); }
private void 新建NToolStripMenuItem_Click(object sender, EventArgs e) { using (NewRoot root = new NewRoot()) root.ShowDialog(); }