Esempio n. 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();
            }
        }
Esempio n. 2
0
 //Extra feature: Spelling mini-game
 private void spellTile_Click(object sender, EventArgs e)
 {
     SpellingGame spell = new SpellingGame();
     spell.Show();
 }
Esempio n. 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();
     }
 }
Esempio n. 4
0
        //Extra feature: Spelling mini-game
        private void spellTile_Click(object sender, EventArgs e)
        {
            SpellingGame spell = new SpellingGame();

            spell.Show();
        }