From dd633320418e12565dc29168bd7f3c8c23c5e02a Mon Sep 17 00:00:00 2001 From: Anastasia Date: Tue, 29 Nov 2022 13:39:45 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B2=20=D1=84=D0=BE=D1=80=D0=BC=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs b/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs index 205d0db..5ba89c9 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/FormAirplaneConfig.cs @@ -22,7 +22,7 @@ namespace AirplaneWithRadar /// /// Событие /// - private event Action EventAddAirplane; + public event AirplaneDelegate EventAddAirplane; /// /// Конструктор /// @@ -56,7 +56,7 @@ namespace AirplaneWithRadar /// Добавление события /// /// - public void AddEvent(Action ev) + public void AddEvent(AirplaneDelegate ev) { if (EventAddAirplane == null) { @@ -168,11 +168,13 @@ namespace AirplaneWithRadar /// /// /// + + + private void ButtonOk_Click(object sender, EventArgs e) { EventAddAirplane?.Invoke(_airplane); Close(); - } } }