изменения небольшие

This commit is contained in:
cyxaruk 2024-05-07 19:22:46 +04:00
parent 37a08bafc8
commit dda318fce5
2 changed files with 2 additions and 10 deletions

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)
public void AddEvent(Action<DrawningMachine>? machineDelegate)
{
MachineDelegate += machineDelegate;
}

View File

@ -1,8 +0,0 @@
using ProjectGasMachine.Drawnings;
namespace ProjectGasMachine;
/// <summary>
/// Делегат передачи объекта класса-прорисовки
/// </summary>
/// <param name="warship"></param>
public delegate void MachineDelegate(DrawningMachine machine);