ISEbd-12 Platonov A.M. Lab Work 07 Simple #7

Closed
cyxaruk wants to merge 3 commits from LabWork07 into LabWork06
Showing only changes of commit b63e7a1c12 - Show all commits

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