diff --git a/AntiAircraftGun/AntiAircraftGun/FormGunConfig.cs b/AntiAircraftGun/AntiAircraftGun/FormGunConfig.cs index 8116aab..9296685 100644 --- a/AntiAircraftGun/AntiAircraftGun/FormGunConfig.cs +++ b/AntiAircraftGun/AntiAircraftGun/FormGunConfig.cs @@ -14,7 +14,7 @@ public partial class FormGunConfig : Form /// /// Событие для передачи объекта /// - private event GunDelegate? _gunDelegate; + private event Action? _gunDelegate; /// /// Конструктор @@ -38,7 +38,7 @@ public partial class FormGunConfig : Form /// Привязка внешнего метода к союытию /// /// - public void AddEvent(GunDelegate gunDelegate) + public void AddEvent(Action gunDelegate) { _gunDelegate += gunDelegate; }