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; }