Beispiel #1
0
        public override void btn_Add_Click(object sender, EventArgs e)
        {
            FrmSupplierAddEdit frm = new FrmSupplierAddEdit();

            frm.ShowDialog();
            Search();
        }
Beispiel #2
0
 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();
 }
Beispiel #3
0
        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();
        }
Beispiel #4
0
 public override void btn_Add_Click(object sender, EventArgs e)
 {
     FrmSupplierAddEdit frm = new FrmSupplierAddEdit();
     frm.ShowDialog();
     Search();
 }
 private void btn_AddCustomer_Click(object sender, EventArgs e)
 {
     FrmSupplierAddEdit frm = new FrmSupplierAddEdit();
     frm.ShowDialog();
 }