Beispiel #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            CoubeGame coubeGame = new CoubeGame();

            coubeGame.ShowDialog();
            RandomGame();
            button2.Enabled = true;
            button1.Enabled = false;
        }
Beispiel #2
0
        private void RandomGame()
        {
            Random randomNum = new Random();
            int    random    = randomNum.Next(1, 11);

            switch (random)
            {
            case 1:
                StringGame stringGame = new StringGame();
                stringGame.ShowDialog();
                break;

            case 2:
                WordFindGame wordFindGame = new WordFindGame();
                wordFindGame.ShowDialog();
                break;

            case 3:
                NumberGame numberGame = new NumberGame();
                numberGame.ShowDialog();
                break;

            case 4:
                NumberFindGame numberFindGame = new NumberFindGame();
                numberFindGame.ShowDialog();
                break;

            case 5:
                FindEvenAndOddNumbersGame findEvenAnd = new FindEvenAndOddNumbersGame();
                findEvenAnd.ShowDialog();
                break;

            case 6:
                CoubeGame coubeGame = new CoubeGame();
                coubeGame.ShowDialog();
                break;

            case 7:
                CoubeGameLevel2 coubeGameLevel2 = new CoubeGameLevel2();
                coubeGameLevel2.ShowDialog();
                break;

            case 8:
                MathTimedGame mathTimedGame = new MathTimedGame();
                mathTimedGame.ShowDialog();
                break;

            case 9:
                MathTimedGameLevel2 mathTimedGameLevel2 = new MathTimedGameLevel2();
                mathTimedGameLevel2.ShowDialog();
                break;

            case 10:
                MathTimedGameLevel3 mathTimedGameLevel3 = new MathTimedGameLevel3();
                mathTimedGameLevel3.ShowDialog();
                break;

            case 11:
                SchulteTable schultzTable = new SchulteTable();
                schultzTable.ShowDialog();
                break;

            case 12:
                SchulteTableLevel2 schultzTableLevel2 = new SchulteTableLevel2();
                schultzTableLevel2.ShowDialog();
                break;

            case 13:
                SchulteTableLevel3 schultzTableLevel3 = new SchulteTableLevel3();
                schultzTableLevel3.ShowDialog();
                break;
            }
        }