void PlayAgainPrompt() { DialogResult dialog = MessageBox.Show("Do you want to play again?", "You lost!", MessageBoxButtons.YesNo); if (dialog == DialogResult.Yes) { game = new FarmerLogic(); } else if (dialog == DialogResult.No) { Application.Exit(); } }
private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { game = new FarmerLogic(); DisableAll(); EnableAll(); }
public Form1() { InitializeComponent(); game = new FarmerLogic(); }