/// <summary> /// Event handler for when the user selects ok on the "are you sure /// you want to exit" message box. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void ZurueckExitMessageBoxAccepted(object sender, EventArgs e) { ScreenManager.AudioManager.PlayKlickSound(); var startScreen = new StartScreen(GraphicsManager, ScreenManager); ScreenManager.AddScreen(startScreen); ExitScreen(); }
/// <summary> /// When the user presses this button, we go on to the messagebox screen /// asking for the gamestyle he wants to play /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void ZurueckMenuEntrySelected(object sender, EventArgs e) { ScreenManager.AudioManager.PlayKlickSound(); var startScreen = new StartScreen(GraphicsManager, ScreenManager); ScreenManager.AddScreen(startScreen); ExitScreen(); }