Example #1
0
        private void btnAddSupplier_Click(object sender, EventArgs e)
        {
            frmSupplierEdit frmSupplierEdit = new frmSupplierEdit();

            frmSupplierEdit.ShowDialog();
            frmSupplierEdit.BringToFront();
        }
Example #2
0
 private void dgvCompany_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)
     {
         frmSupplierEdit frmSupplierEdit = new frmSupplierEdit();
         frmSupplierEdit.BringToFront();
         frmSupplierEdit.companyID = companyID;
         frmSupplierEdit.ShowDialog();
     }
 }
Example #3
0
 private void btnEditSupplier_Click(object sender, EventArgs e)
 {
     if (companyID > 0)
     {
         frmSupplierEdit frmSupplierEdit = new frmSupplierEdit();
         frmSupplierEdit.BringToFront();
         frmSupplierEdit.companyID = companyID;
         frmSupplierEdit.ShowDialog();
     }
     else
     {
         this.ShowMessage("请选择要编辑的供应商资料!");
     }
 }