From 0dcec43db9c514266267eda8beeb3ae7ef8e610b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=9A=D1=83=D0=B4=D1=80=D0=B8?= =?UTF-8?q?=D0=BD=D1=81=D0=BA=D0=B8=D0=B9?= Date: Mon, 6 May 2024 20:16:45 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20?= =?UTF-8?q?=3D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectContainerShip/ProjectContainerShip/FormShipConfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectContainerShip/ProjectContainerShip/FormShipConfig.cs b/ProjectContainerShip/ProjectContainerShip/FormShipConfig.cs index 340e51a..f11a4dc 100644 --- a/ProjectContainerShip/ProjectContainerShip/FormShipConfig.cs +++ b/ProjectContainerShip/ProjectContainerShip/FormShipConfig.cs @@ -26,7 +26,7 @@ public partial class FormShipConfig : Form /// /// Событие для передачи объекта /// - private event ShipDelegate? ShipDelegate; + private event Action? ShipDelegate; /// /// Конструктор @@ -51,7 +51,7 @@ public partial class FormShipConfig : Form /// Привязка внешнего метода к событию /// /// - public void AddEvent(ShipDelegate shipDelegate) + public void AddEvent(Action shipDelegate) { ShipDelegate += shipDelegate; }