Beispiel #1
0
 private void 自动检测AToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (fAutoTest.IsDisposed)
     {
         fAutoTest = new FrmAutoTest();
     }
     fAutoTest.Show();
     fAutoTest.WindowState = FormWindowState.Maximized;
     fAutoTest.BringToFront();
 }
Beispiel #2
0
 private void frmMain_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F5)
     {
         if (fAutoTest.IsDisposed)
         {
             fAutoTest = new FrmAutoTest();
         }
         fAutoTest.Show();
     }
     if (e.KeyCode == Keys.F6)
     {
         if (fReport.IsDisposed)
         {
             fReport = new frmDataShow();
         }
         fReport.Show();
     }
 }