Ejemplo n.º 1
0
        public void SetGameError(string message)
        {
            DialogResult result = MessageBox.Show(message, "Error", MessageBoxButtons.OK);

            if (result != DialogResult.None)
            {
                RequestStartNewGame?.Invoke(currentDifficultyMode);
            }
        }
Ejemplo n.º 2
0
        public void SetGameResult(bool success)
        {
            DialogResult result = MessageBox.Show(success ? "Victory!" : "Defeat", "Game finished", MessageBoxButtons.OK);

            if (result != DialogResult.None)
            {
                RequestStartNewGame?.Invoke(currentDifficultyMode);
            }
        }
Ejemplo n.º 3
0
 private void expertToolStripMenuItem_Click(object sender, EventArgs e)
 {
     currentDifficultyMode = "expert";
     RequestStartNewGame?.Invoke(currentDifficultyMode);
 }
Ejemplo n.º 4
0
 private void intermediateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     currentDifficultyMode = "intermediate";
     RequestStartNewGame?.Invoke(currentDifficultyMode);
 }