コード例 #1
0
ファイル: Form1.cs プロジェクト: devwasik/ChickenFarmerGrain
        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();
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: devwasik/ChickenFarmerGrain
 private void newGameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     game = new FarmerLogic();
     DisableAll();
     EnableAll();
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: devwasik/ChickenFarmerGrain
        public Form1()
        {
            InitializeComponent();

            game = new FarmerLogic();
        }