/// <summary> /// Установить обработчик KillEvent /// </summary> /// <param name="handler"></param> public void SetFiguresKillListener(KillEventHandler handler) { foreach (Figure fig in pl1.alivefigures) { fig.KillEvent += handler; } foreach (Figure fig in pl2.alivefigures) { fig.KillEvent += handler; } }
/// <summary> /// Установить обработчик KillEvent /// </summary> /// <param name="handler"></param> public void SetFiguresKillListener(KillEventHandler handler) { foreach (Figure fig in pl1.alivefigures) fig.KillEvent += handler; foreach (Figure fig in pl2.alivefigures) fig.KillEvent += handler; }