public void SetGameError(string message) { DialogResult result = MessageBox.Show(message, "Error", MessageBoxButtons.OK); if (result != DialogResult.None) { RequestStartNewGame?.Invoke(currentDifficultyMode); } }
public void SetGameResult(bool success) { DialogResult result = MessageBox.Show(success ? "Victory!" : "Defeat", "Game finished", MessageBoxButtons.OK); if (result != DialogResult.None) { RequestStartNewGame?.Invoke(currentDifficultyMode); } }
private void expertToolStripMenuItem_Click(object sender, EventArgs e) { currentDifficultyMode = "expert"; RequestStartNewGame?.Invoke(currentDifficultyMode); }
private void intermediateToolStripMenuItem_Click(object sender, EventArgs e) { currentDifficultyMode = "intermediate"; RequestStartNewGame?.Invoke(currentDifficultyMode); }