/// <summary> /// When the user cancels the main menu, ask if they want to exit the sample. /// </summary> protected override void OnCancel() { const string message = "Exit Project Gesture?"; MessageBoxScreen messageBox = new MessageBoxScreen(message); messageBox.Accepted += ExitMessageBoxAccepted; ScreenManager.AddScreen(messageBox); }
/// <summary> /// When the user cancels the main menu, ask if they want to exit the sample. /// </summary> protected override void OnCancel() { const string message = "No more kisses?"; MessageBoxScreen messageBox = new MessageBoxScreen(message); messageBox.Accepted += ExitMessageBoxAccepted; ScreenManager.AddScreen(messageBox); }
/// <summary> /// Event handler for when the Quit Game menu entry is selected. /// </summary> void QuitGameEntrySelected(object sender, EventArgs e) { // Quit the game, after a confirmation message box. const string message = "Are you sure?"; MessageBoxScreen messageBox = new MessageBoxScreen(message); messageBox.Accepted += QuitMessageBoxAccepted; ScreenManager.AddScreen(messageBox); }