изменения
This commit is contained in:
parent
6b8ef29396
commit
95cdc05c76
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user