изменения

This commit is contained in:
cyxaruk 2024-05-07 19:24:38 +04:00
parent 6b8ef29396
commit 95cdc05c76

View File

@ -16,13 +16,13 @@ public partial class FormGasConfig : Form
/// <summary>
/// событие для передачи объекта
/// </summary>
private event MachineDelegate? MachineDelegate;
private event Action<DrawningMachine>? MachineDelegate;
/// <summary>
/// Привязка внешнего метода к событию
/// </summary>
/// <param name="warshipDelegate"></param>
public void AddEvent(MachineDelegate machineDelegate)
/// <param name="machineDelegate"></param>
public void AddEvent(Action<DrawningMachine>? machineDelegate)
{
MachineDelegate += machineDelegate;
}