コード例 #1
0
        private void Restart_Click(object sender, EventArgs e)
        {
            BattleField Battle = BattleField.getBat();

            Death.Checked = false;
            clone.Checked = false;
            clone_CheckedChanged(sender, e);
            Death_CheckedChanged(sender, e);
            groupBox2.Enabled = false;
            Battle.DelR();
            Battle.DelU();
            Battle.DelB();
            Battle.NotifyObserverF("Начата новая игра");
            button1.Enabled = true;
            Restart.Enabled = false;
            UnDo.Enabled    = false;
            ReDo.Enabled    = false;
            OneStep.Enabled = false;
            Start.Enabled   = false;
            Pause.Enabled   = false;
            ArmyA.Rows.Clear();
            ArmyB.Rows.Clear();
        }