Пример #1
0
 private void applicationForMedialCertificateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (frmQuestionareAviation_N frm = new frmQuestionareAviation_N())
     {
         frm.loadfrm();
         frm.ShowDialog();
     }
 }
Пример #2
0
 private void initialToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Program.CurrentRegis != null)
     {
         frmQuestionareAviation_N frmQuestionA_N = new frmQuestionareAviation_N();
         frmQuestionA_N.loadfrm();
         frmQuestionA_N.ShowDialog();
     }
 }
Пример #3
0
 private void questionareAvationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Program.CurrentRegis != null)
     {
         if (Program.CurrentRegis.tpr_aviation_type == 'N')
         {
             frmQuestionareAviation_N frm = new frmQuestionareAviation_N();//Program.CurrentRegis, Program.CurrentUser, Program.CurrentSite
             frm.loadfrm();
             frm.ShowDialog();
         }
         else if (Program.CurrentRegis.tpr_aviation_type == 'F')
         {
             frmQuestionareAviation_F frm = new frmQuestionareAviation_F(); //Program.CurrentRegis, Program.CurrentUser, Program.CurrentSite
             frm.loadfrm();
             frm.ShowDialog();
         }
         else
         {
             MessageBox.Show("คุณยังไม่ได้ระบุ Aviation Type", "Alert Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
 }