예제 #1
0
 private void mnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmAdjusted f = new frmAdjusted();
         f.op = "Add";
         f.Form_Load();
         f.ShowDialog();
     }
     catch
     {
     }
 }
예제 #2
0
 private void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         frmAdjusted f = new frmAdjusted();
         f.op = "Edit";
         f.FillData(Convert.ToInt32(dgvStore.CurrentRow.Cells["ID"].Value.ToString()));
         f.ShowDialog();
     }
     catch
     {
         frmMessage f = new frmMessage();
         f.flag            = 0;
         f.lblMessage.Text = "تعدیل انتخابی معتبر نمی باشد";
         f.ShowDialog();
     }
 }