Example #1
0
 private void mnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmCustomer f = new frmCustomer();
         f.op = "Add";
         f.Form_Load();
         f.ShowDialog();
     }
     catch
     {
     }
 }
Example #2
0
 private void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         frmCustomer f = new frmCustomer();
         f.op = "Edit";
         f.FillData(dgvStore.CurrentRow.Cells["Code"].Value.ToString());
         f.ShowDialog();
     }
     catch
     {
         frmMessage f = new frmMessage();
         f.flag            = 0;
         f.lblMessage.Text = "مشتری انتخابی معتبر نمی باشد";
         f.ShowDialog();
     }
 }
Example #3
0
 private void mnuView_Click(object sender, EventArgs e)
 {
     try
     {
         frmCustomer f = new frmCustomer();
         f.FillData(dgvStore.CurrentRow.Cells["Code"].Value.ToString());
         f.groupPanel1.Enabled = false;
         f.btnFinish.Enabled   = false;
         f.ShowDialog();
     }
     catch
     {
         frmMessage f = new frmMessage();
         f.flag            = 0;
         f.lblMessage.Text = "مشتری انتخابی معتبر نمی باشد";
         f.ShowDialog();
     }
 }