доделал =)

This commit is contained in:
Олег Кудринский 2024-05-06 20:16:45 +04:00
parent 07770841c0
commit 0dcec43db9

View File

@ -26,7 +26,7 @@ public partial class FormShipConfig : Form
/// <summary>
/// Событие для передачи объекта
/// </summary>
private event ShipDelegate? ShipDelegate;
private event Action<DrawningShip>? ShipDelegate;
/// <summary>
/// Конструктор
@ -51,7 +51,7 @@ public partial class FormShipConfig : Form
/// Привязка внешнего метода к событию
/// </summary>
/// <param name="shipDelegate"></param>
public void AddEvent(ShipDelegate shipDelegate)
public void AddEvent(Action<DrawningShip> shipDelegate)
{
ShipDelegate += shipDelegate;
}