private void btnMod_Click(object sender, EventArgs e)
 {
     if (this.dbTreeView.SelectedNode == null)
     {
         return;
     }
     if (this.dbTreeView.SelectedNode.Level == 0)
     {
         return;
     }
     //
     using (var form = new BAS_存货类别设置_Editor())
     {
         DataRow row = (this.dbGridView.DataSource as DataTable).Locate("类别编码", this.dbTreeView.SelectedNode.ID);
         if (row == null)
         {
             AppServer.ShowMsg_Error("没有找到当前类别的数据啊,为什么呢?");
             return;
         }
         //
         form.Editor_Mod(row);
         if (form.ShowDialog() == DialogResult.OK)
         {
             this.dbTreeView.SelectedNode.Text = form.NewSortName;
             //
             this.DataBinding_dbGridView(this.dbTreeView.SelectedNode.ID, 0);
         }
     }
 }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (var Fm = new BAS_存货类别设置_Editor())
     {
         Fm.Editor_Add(this.dbTreeView.SelectedNode.ID, this.dbTreeView.SelectedNode.Text);
         Fm.OnAddNewNodeEvent = this.AddNewNodeEvent;
         if (Fm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
         }
     }
 }