/// <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(); playerSettings.PlayerName = textBox.Text; var spielerDialog = new SpielerDialogScreen(GraphicsManager, ScreenManager, 1, playerSettings); ScreenManager.AddScreen(spielerDialog); ExitScreen(); }
/// <summary> /// When the user presses this button, we go on to the screen for /// the network connection /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void Spieler4KonfigurierenMenuEntrySelected(object sender, EventArgs e) { ScreenManager.AudioManager.PlayKlickSound(); var spielerDialog = new SpielerDialogScreen(GraphicsManager, ScreenManager, 4, ScreenManager.PlayerSettings[3]); ScreenManager.AddScreen(spielerDialog); }