Изменение делегата
This commit is contained in:
parent
117d18566a
commit
14ea9c0a89
@ -15,7 +15,7 @@ namespace WarmlyShip
|
||||
|
||||
DrawingWarmlyShip _warmlyShip = null;
|
||||
|
||||
private event ShipDelegate EventAddShip;
|
||||
private Action<DrawingWarmlyShip> EventAddShip;
|
||||
|
||||
public FormShipConfig()
|
||||
{
|
||||
@ -41,11 +41,11 @@ namespace WarmlyShip
|
||||
pictureBoxObject.Image = bmp;
|
||||
}
|
||||
|
||||
public void AddEvent(ShipDelegate ev)
|
||||
public void AddEvent(Action<DrawingWarmlyShip> ev)
|
||||
{
|
||||
if (EventAddShip == null)
|
||||
{
|
||||
EventAddShip = new ShipDelegate(ev);
|
||||
EventAddShip = ev;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user