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

            if (Death.Checked)
            {
                OD = new ObserverDeath(ArmyA, ArmyB);
                Battle.AddObserverD(OD);
            }
            else
            {
                Battle.RemoveObserverD(OD);
            }
        }