Ejemplo n.º 1
0
 private void OptionsList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (initialized)
     {
         int  i       = 0;
         bool cogMode = false;
         foreach (bool b in main.cogLoad)
         {
             bool s = OptionsList.GetItemChecked(i);
             main.cogLoad[i] = s;
             i++;
             if (s == true)
             {
                 cogMode = true;
                 main.cognitiveLoadTest = true;
             }
         }
         if (!cogMode)
         {
             main.cognitiveLoadTest = false;
         }
         main.Restart();
     }
 }
Ejemplo n.º 2
0
 private void restartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     mainDisplay.Restart();
 }