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

            frm.ShowDialog();
            Search();
        }
Beispiel #2
0
 public override void btn_Edit_Click(object sender, EventArgs e)
 {
     int? customerID=0;
     if (dgrid_Result.Rows [dgrid_Result.SelectedCells[0].RowIndex ].Cells ["CustomerID"].Value !=null)
     {
         customerID =Convert .ToInt32( dgrid_Result.Rows[dgrid_Result.SelectedCells[0].RowIndex].Cells["CustomerID"].Value);
     }
     else
     {
         MessageBox.Show("لابد من اختيار عميل");
     }
     FrmCustomerAddEdit frm = new FrmCustomerAddEdit(customerID);
     frm.ShowDialog();
     Search();
 }
Beispiel #3
0
        public override void btn_Edit_Click(object sender, EventArgs e)
        {
            int?customerID = 0;

            if (dgrid_Result.Rows [dgrid_Result.SelectedCells[0].RowIndex].Cells ["CustomerID"].Value != null)
            {
                customerID = Convert.ToInt32(dgrid_Result.Rows[dgrid_Result.SelectedCells[0].RowIndex].Cells["CustomerID"].Value);
            }
            else
            {
                MessageBox.Show("لابد من اختيار عميل");
            }
            FrmCustomerAddEdit frm = new FrmCustomerAddEdit(customerID);

            frm.ShowDialog();
            Search();
        }
Beispiel #4
0
 public override void btn_Add_Click(object sender, EventArgs e)
 {
     FrmCustomerAddEdit frm = new FrmCustomerAddEdit();
     frm.ShowDialog();
     Search();
 }
Beispiel #5
0
 private void btn_AddCustomer_Click(object sender, EventArgs e)
 {
     FrmCustomerAddEdit frm = new FrmCustomerAddEdit();
     frm.ShowDialog();
 }