Exemple #1
0
 private void tekenWolk_Click(object sender, EventArgs e)
 {
     Reken.Rekenen rekenscherm = new Reken.Rekenen(userInstellingen);
     this.Hide();
     rekenscherm.Closed += (s, args) => this.Close();
     rekenscherm.Show();
 }
Exemple #2
0
        /// <summary>
        /// goes to the new game/level when clicking on the text balloon
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tekstballon_Click(object sender, EventArgs e)
        {
            switch (userInstellingen.eventSpel)
            {
            case "rekenPlus":
                Reken.Rekenen rekenscherm = new Reken.Rekenen(userInstellingen);
                this.Hide();
                rekenscherm.Closed += (s, args) => this.Close();
                rekenscherm.Show();
                break;

            case "letter":
            case "letterBegin":
                AbcLetterScherm AbcLetterScherm = new AbcLetterScherm(userInstellingen);
                this.Hide();
                AbcLetterScherm.Closed += (s, args) => this.Close();
                AbcLetterScherm.Show();
                break;

            default:
                break;
            }
        }