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