Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (var fm = new M02_仓库设置_Editor())
     {
         fm.Editor_Add();
         if (fm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.DataBinding_dbGridView(0);
         }
     }
 }
Пример #2
0
 private void btnMod_Click(object sender, EventArgs e)
 {
     if (this.dbGridView.SelectedRows.Count == 0)
     {
         return;
     }
     //
     using (var fm = new M02_仓库设置_Editor())
     {
         fm.Editor_Mod(this.dbGridView.SelectedRows[0]);
         if (fm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.DataBinding_dbGridView(this.dbGridView.SelectedRows[0].Index);
         }
     }
 }