예제 #1
0
 public static void BeginStroopTest(string programName, string participantName, char mark, Form form)
 {
     try
     {
         SendKeys.SendWait("i");
         FormExposition formExposition = new FormExposition(programName, participantName, mark);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #2
0
 public static void BeginStroopTest(string programName, string participantName, char mark, Form form)
 {
     try
     {
         FormExposition ormExposition = new FormExposition(programName, participantName, mark);
         ormExposition.StartPosition = FormStartPosition.Manual;
         ormExposition.Location      = Screen.AllScreens[ShowOnMonitor(form)].WorkingArea.Location;
         SendKeys.SendWait("i");
         var dialogResult = ormExposition.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }