PIbd-11 Kudrinsky O.S. LabWork05 Simple #7

Closed
8floom wants to merge 3 commits from LabWork05 into LabWork04
Showing only changes of commit 0dcec43db9 - Show all commits

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