public void PostSubmit(String selectedItem) { if (selectedItem == "SSVEP") { ssvep = new SSVEP_Form(9); ssvep.Show(); ssvep.SSVEP_11Hz.Enabled = true; ssvep.SSVEP_13Hz.Enabled = true; // ssvep.SSVEP_timer2.Enabled = true; ShowFreq(); //SSVEP_Timer.Enabled = true; } else if (selectedItem == "Mental Task") { EmoUpdate.Enabled = true; ShowEMOLabel(); ShowFreq(); } }
public void Direction_postsubmit(String selectedItem) { //Relax-baseline if (selectedItem == "Relax") { richTextBox_Direction.Text = "Relax and Think of Nothing for 10 seconds. "; } else if (selectedItem == "Math-Level1" || selectedItem == "Math-Level2" || selectedItem == "Math-Level3" || selectedItem == "Math-Level4") { int n1, n2 = 0; int n3, n4 = 0; Random rnd1 = new Random(); n1 = rnd1.Next(10, 100); n2 = rnd1.Next(10, 100); n3 = rnd1.Next(10, 100); n4 = rnd1.Next(10, 100); if (selectedItem == "Math-Level1") { richTextBox_Direction.Text = "Solve the below expression in your mind : \n " + n1 + " + " + n2; } else if (selectedItem == "Math-Level2") { richTextBox_Direction.Text = "Solve the below expression in your mind : \n " + n1 + " x " + n2; } else if (selectedItem == "Math-Level3") { richTextBox_Direction.Text = "Solve the below expression in your mind : \n " + n1 + " x " + n2 + " + " + n3 + " x " + n4; } else if (selectedItem == "Math-Level4") { richTextBox_Direction.Text = "Solve the below expression in your mind : \n " + n1 + " x " + n2 + " x " + n3 + " x " + n4; } } //Geometric figure rotation task else if (selectedItem == "Geometric figure rotation") { richTextBox_Direction.Text = "Memorize the following figure \n"; } else if (selectedItem == "Mental letter composing") { // richTextBox_Direction.Text = "Mentally Compose a letter to a friend"; } else if (selectedItem == "Visual counting") { richTextBox_Direction.Text = "Imagine a blackboard. \n" + "First, Visualize number 0 on the board," + "Erase it while counting 1, and so on. "; } else if (selectedItem == "SSVEP-9HZ") { ssvep = new SSVEP_Form(9); ssvep.Show(); ssvep.SSVEP_timer1.Interval = 111; ssvep.SSVEP_timer1.Enabled = true; // ssvep.SSVEP_timer2.Enabled = true; //SSVEP_Timer.Enabled = true; } else if (selectedItem == "SSVEP-11HZ") { ssvep = new SSVEP_Form(11); ssvep.Show(); ssvep.SSVEP_timer1.Interval = 91; ssvep.SSVEP_timer1.Enabled = true; // ssvep.SSVEP_timer2.Enabled = true; //SSVEP_Timer.Enabled = true; } else if (selectedItem == "SSVEP-13HZ") { ssvep = new SSVEP_Form(13); ssvep.Show(); ssvep.SSVEP_timer1.Interval = 77; ssvep.SSVEP_timer1.Enabled = true; // ssvep.SSVEP_timer2.Enabled = true; //SSVEP_Timer.Enabled = true; } else if (selectedItem == "SSVEP-15HZ") { ssvep = new SSVEP_Form(15); ssvep.Show(); ssvep.SSVEP_timer1.Interval = 67; ssvep.SSVEP_timer1.Enabled = true; // ssvep.SSVEP_timer2.Enabled = true; //SSVEP_Timer.Enabled = true; } else if (selectedItem == "Open-Close") { richTextBox_Direction.Text = "Open Eyes first. Close eyes when hearing a beeping sound. "; } else if (selectedItem == "Open-Eyes") { richTextBox_Direction.Text = "You will open eyes for 10 seconds"; } else { } }