예제 #1
0
 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;
     }
 }
예제 #2
0
        public void InsertItem()
        {
            frmTreeView frmAddNode = new frmTreeView(this, true);
            if (frmAddNode.ShowDialog() == DialogResult.OK)
            {
                this.Nodes.Clear();
                this.Initial();
            }

            this.SelectedNode = null;
        }