Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("Введите стоимость армий.", "Error.", MessageBoxButtons.OK);
                return;
            }

            BattleField Battle = BattleField.getBat();

            groupBox2.Enabled = true;

            Battle.CreateArmy(Convert.ToInt16(textBox1.Text));
            Battle.AddObserverF(OF);

            Battle.CreateCom(UnDo, ReDo);
            Battle.ShowArmy(ArmyA, ArmyB);
            Start.Enabled   = true;
            OneStep.Enabled = true;
        }