void QuitGameMenuEntrySelected(object sender, EventArgs e)
        {
            const string message = "Are you sure you want to quit current game?";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message);

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            TankWars.AddScreen(confirmQuitMessageBox);
        }
Example #2
0
        protected override void OnCancel()
        {
            const string message = "Are you sure you want to exit Tank Wars?";

            MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(message);

            confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted;

            TankWars.AddScreen(confirmExitMessageBox);
        }