изменения небольшие
This commit is contained in:
parent
37a08bafc8
commit
dda318fce5
@ -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)
|
||||
public void AddEvent(Action<DrawningMachine>? machineDelegate)
|
||||
{
|
||||
MachineDelegate += machineDelegate;
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
using ProjectGasMachine.Drawnings;
|
||||
|
||||
namespace ProjectGasMachine;
|
||||
/// <summary>
|
||||
/// Делегат передачи объекта класса-прорисовки
|
||||
/// </summary>
|
||||
/// <param name="warship"></param>
|
||||
public delegate void MachineDelegate(DrawningMachine machine);
|
Loading…
Reference in New Issue
Block a user