/// <summary>
        /// Constructor.
        /// </summary>
        public PauseMenuScreen()
            : base("Game Paused")
        {
            // Add the Resume Game menu entry.
            MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game");
            resumeGameMenuEntry.Selected += OnCancel;
            MenuEntries.Add(resumeGameMenuEntry);

            MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game");
            quitGameMenuEntry.Selected += QuitGameMenuEntrySelected;
            MenuEntries.Add(quitGameMenuEntry);
        }
 public HighscoreScreen()
     : base("High Score List")
 {
     HighScore = HighScoreController.ReadAllHighScores();
     foreach (var highScore in HighScore)
     {
         var entry = new MenuEntry("Score: " + highScore.Score + ", Level: " + highScore.Level);
         entry.Selected += OnCancel;
         entry.Selected += HighScoreMenuSelected;
         MenuEntries.Add(entry);
     }
 }
        public GameEndedScreen(int score, int level, string menuTitle)
            : base("Game Over")
        {
            GameController.HighScores = HighScoreController.ReadAllHighScores();
            var h = new HighScore()
                {
                    Difficulty = "Easy",
                    Level = level,
                    Score = score,
                    Name = "random"
                };
            GameController.HighScores.Add(h);
            GameController.HighScores = GameController.HighScores.OrderByDescending(x => x.Score).Take(10).ToList();

            if (GameController.HighScores.Contains(h))
            {
                var newScore = new MenuEntry("Congratulation, new High Score");

                var scor = new MenuEntry("Score: " + h.Score + ", Level: " + h.Level);

                newScore.Selected += HighScoreMenuSelected;
                scor.Selected += HighScoreMenuSelected;

                newScore.Selected += OnCancel;
                scor.Selected += OnCancel;

                MenuEntries.Add(newScore);
                MenuEntries.Add(scor);

                HighScoreController.SaveHighScores();
            }
            else
            {
                var damn = new MenuEntry("Game Over - no luck for you");
                damn.Selected += HighScoreMenuSelected;
                damn.Selected += OnCancel;

                MenuEntries.Add(damn);
            }
        }
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainMenuScreen()
            : base("Main Menu")
        {
            // Create our menu entries.
            MenuEntry singlePlayerMenuEntry = new MenuEntry("New Game");
            MenuEntry highScoreMenuEntry = new MenuEntry("High Score");
            // MenuEntry liveMenuEntry = new MenuEntry(Resources.PlayerMatch);
            MenuEntry settingsMenuEntry = new MenuEntry("Settings");
            MenuEntry exitMenuEntry = new MenuEntry("Quit");

            // Hook up menu event handlers.
            singlePlayerMenuEntry.Selected += SinglePlayerMenuEntrySelected;
            highScoreMenuEntry.Selected += HighScoreMenuSelected;
            exitMenuEntry.Selected += OnCancel;

            settingsMenuEntry.Selected += SettingsSelected;

            // Add entries to the menu.
            MenuEntries.Add(singlePlayerMenuEntry);
            MenuEntries.Add(highScoreMenuEntry);
            MenuEntries.Add(settingsMenuEntry);
            MenuEntries.Add(exitMenuEntry);
        }