/// <summary> /// Open the pause dialog box and gets Cancel or Abort result from it /// </summary> private void pauseGame() { gameTimer.Enabled = false; DialogResult result = PauseDialog.Show(); if (result == DialogResult.Cancel) { gameTimer.Enabled = true; } if (result == DialogResult.Abort) { ScreenControl.changeScreen(this, "MenuScreen"); } }
/// <summary> /// Open the pause dialog box and gets Cancel or Abort result from it /// </summary> private void pauseGame() { scoreTimer.Enabled = false; gameTimer.Enabled = false; rightArrowDown = leftArrowDown = upArrowDown = downArrowDown = false; DialogResult result = PauseDialog.Show(); if (result == DialogResult.Cancel) { gameTimer.Enabled = true; } if (result == DialogResult.Abort) { ScreenControl.changeScreen(this, "MenuScreen"); } }