diff --git a/ProjectCar/ProjectCar/FormGasConfig.cs b/ProjectCar/ProjectCar/FormGasConfig.cs index c5993e7..2258606 100644 --- a/ProjectCar/ProjectCar/FormGasConfig.cs +++ b/ProjectCar/ProjectCar/FormGasConfig.cs @@ -16,13 +16,13 @@ public partial class FormGasConfig : Form /// /// событие для передачи объекта /// - private event MachineDelegate? MachineDelegate; + private event Action? MachineDelegate; /// /// Привязка внешнего метода к событию /// - /// - public void AddEvent(MachineDelegate machineDelegate) + /// + public void AddEvent(Action? machineDelegate) { MachineDelegate += machineDelegate; }