public void UpdateItem() { if (this.SelectedNode != null) { frmTreeView frmUpdateNode = new frmTreeView(this, false); if (frmUpdateNode.ShowDialog() == DialogResult.OK) { this.Nodes.Clear(); this.Initial(); } this.SelectedNode = null; } }
public void InsertItem() { frmTreeView frmAddNode = new frmTreeView(this, true); if (frmAddNode.ShowDialog() == DialogResult.OK) { this.Nodes.Clear(); this.Initial(); } this.SelectedNode = null; }