public override void btn_Add_Click(object sender, EventArgs e) { FrmSupplierAddEdit frm = new FrmSupplierAddEdit(); frm.ShowDialog(); Search(); }
public override void btn_Edit_Click(object sender, EventArgs e) { int? supplierID = 0; if (dgrid_Result.Rows[dgrid_Result.SelectedCells[0].RowIndex].Cells["SupplierID"].Value != null) { supplierID = Convert.ToInt32(dgrid_Result.Rows[dgrid_Result.SelectedCells[0].RowIndex].Cells["SupplierID"].Value); } else { MessageBox.Show("لابد من اختيار مورد"); } FrmSupplierAddEdit frm = new FrmSupplierAddEdit(supplierID); frm.ShowDialog(); Search(); }
public override void btn_Edit_Click(object sender, EventArgs e) { int?supplierID = 0; if (dgrid_Result.Rows[dgrid_Result.SelectedCells[0].RowIndex].Cells["SupplierID"].Value != null) { supplierID = Convert.ToInt32(dgrid_Result.Rows[dgrid_Result.SelectedCells[0].RowIndex].Cells["SupplierID"].Value); } else { MessageBox.Show("لابد من اختيار مورد"); } FrmSupplierAddEdit frm = new FrmSupplierAddEdit(supplierID); frm.ShowDialog(); Search(); }
private void btn_AddCustomer_Click(object sender, EventArgs e) { FrmSupplierAddEdit frm = new FrmSupplierAddEdit(); frm.ShowDialog(); }