Exemplo n.º 1
0
        public override void btn_Add_Click(object sender, EventArgs e)
        {
            FrmSupplierAddEdit frm = new FrmSupplierAddEdit();

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