Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 private void newGameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     game = new FarmerLogic();
     DisableAll();
     EnableAll();
 }
Exemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();

            game = new FarmerLogic();
        }