コード例 #1
0
        private void Pause_Click(object sender, EventArgs e)
        {
            groupBox1.Invoke(new Action(() => groupBox1.Enabled = false));

            BattleField Battle = BattleField.getBat();

            Pause.Enabled     = false;
            UnDo.Enabled      = true;
            OneStep.Enabled   = true;
            Start.Enabled     = true;
            Restart.Enabled   = true;
            groupBox2.Enabled = true;
            groupBox1.Enabled = true;
            Battle.Pause();
        }