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

            if (clone.Checked)
            {
                OC = new ObserverClone();
                Battle.AddObserverC(OC);
            }
            else
            {
                Battle.RemoveObserverC(OC);
            }
        }