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(); } }
private void restartToolStripMenuItem_Click(object sender, EventArgs e) { mainDisplay.Restart(); }