доделал =)
This commit is contained in:
parent
07770841c0
commit
0dcec43db9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user