예제 #1
0
        private void ButtonEventHandler(object sender, EventArgs e)
        {
            String buttonName = ((Button)sender).Name;

            if (buttonName == "readBtn")
            {
                callReadPhaseForm(isColorBlind);
            }
            else if (buttonName == "writeBtn")
            {
                callWritePhaseForm(isColorBlind);
            }
            else if (buttonName == "wordBankBtn")
            {
                WordBank wordBank = new WordBank();
                wordBank.Show();
            }
            else if (buttonName == "mathGameBtn")
            {
                MathGame math = new MathGame();
                math.ShowDialog();
            }
            else if (buttonName == "spellGameBtn")
            {
                SpellingGame spell = new SpellingGame();
                spell.Show();
            }
            else if (buttonName == "guessGameBtn")
            {
                GuessGame guess = new GuessGame();
                guess.Show();
            }
        }
예제 #2
0
 //Extra feature: Math mini-game
 private void mathTile_Click(object sender, EventArgs e)
 {
     MathGame math = new MathGame();
     math.ShowDialog();
 }
예제 #3
0
 private void ButtonEventHandler(object sender, EventArgs e)
 {
     String buttonName = ((Button)sender).Name;
     if(buttonName == "readBtn")
     {
         callReadPhaseForm(isColorBlind);
     }
     else if(buttonName == "writeBtn")
     {
         callWritePhaseForm(isColorBlind);
     }
     else if (buttonName == "wordBankBtn")
     {
         WordBank wordBank = new WordBank();
         wordBank.Show();
     }
     else if (buttonName == "mathGameBtn")
     {
         MathGame math = new MathGame();
         math.ShowDialog();
     }
     else if (buttonName == "spellGameBtn")
     {
         SpellingGame spell = new SpellingGame();
         spell.Show();
     }
     else if (buttonName == "guessGameBtn")
     {
         GuessGame guess = new GuessGame();
         guess.Show();
     }
 }
예제 #4
0
        //Extra feature: Math mini-game
        private void mathTile_Click(object sender, EventArgs e)
        {
            MathGame math = new MathGame();

            math.ShowDialog();
        }