Ejemplo n.º 1
0
        static public void OpenMenu(string nextMenu)
        {
            Console.Beep(1000, 20);
            Console.Beep(1200, 20);
            switch (nextMenu)
            {
            case "PlayGame":
                PlayGame();
                break;

            case "Exit":
                System.Environment.Exit(0);
                break;

            case "HighScores":
                throw new NotImplementedException();
                break;

            case "Main Menu":
                var FromInitialNextMenu = Menu.ShowInitial();
                Core.OpenMenu(FromInitialNextMenu);
                break;

            case "PlayerNameTyper":
                var FromPlayerNameTypeNextMenu = Menu.ShowPlayerNameTyper();
                Core.OpenMenu(FromPlayerNameTypeNextMenu);
                break;
            }
        }
Ejemplo n.º 2
0
        static public void OpenMenu(string nextMenu)
        {
            Console.Beep(1000, 20);
            Console.Beep(1200, 20);
            switch (nextMenu)
            {
            case "Start":
                PlayGame();
                break;

            case "Wyjśćie":
                System.Environment.Exit(0);
                break;

            case "Wynik":
                throw new NotImplementedException();
                break;

            case "Menu":
                var FromInitialNextMenu = Menu.ShowInitial();
                Core.OpenMenu(FromInitialNextMenu);
                break;

            case "Nazwa Gracza":
                var FromPlayerNameTypeNextMenu = Menu.ShowPlayerNameTyper();
                Core.OpenMenu(FromPlayerNameTypeNextMenu);
                break;
            }
        }