Beispiel #1
0
 private void mnuInsert_Click(object sender, EventArgs e)
 {
     try
     {
         frmPer_Leave f = new frmPer_Leave();
         f.Form_Load();
         f.op = "Add";
         f.ShowDialog();
     }
     catch
     {
     }
 }
Beispiel #2
0
 private void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         frmPer_Leave f = new frmPer_Leave();
         f.op = "Edit";
         f.Fill_Data((Guid.Parse(dgvStore.CurrentRow.Cells["Guid_1"].Value.ToString())));
         f.ShowDialog();
     }
     catch
     {
         frmMessage f = new frmMessage();
         f.flag            = 0;
         f.lblMessage.Text = "مرخصی انتخابی معتبر نمی باشد";
         f.ShowDialog();
     }
 }