private void btnAdd_Click(object sender, EventArgs e)
 {
     using (var form = new BAS_供应商设置_Editor())
     {
         form.Editor_Add();
         if (form.ShowDialog() == DialogResult.OK)
         {
             this.DataBinding_dbGridView(0);
             if (this.dbGridView.Rows.Count > 0)
             {
                 TY.Helper.GridHelper.GoToRowByIndex(this.dbGridView, 0);
             }
         }
     }
 }
        private void btnMod_Click(object sender, EventArgs e)
        {
            if (this.dbGridView.SelectedRows.Count == 0)
            {
                return;
            }
            //
            string Code = this.dbGridView.SelectedRows[0].Cells["供应商编码"].Value.ToString();

            using (BAS_供应商设置_Editor form = new BAS_供应商设置_Editor())
            {
                form.Editor_Mod(this.dbGridView.SelectedRows[0]);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    this.DataBinding_dbGridView(this.dbGridView.CurrentRow.Index);
                    TY.Helper.GridHelper.GotoGridRowByCode(this.dbGridView, "供应商编码", Code);
                    this.dbGridView.Focus();
                }
            }
        }