LabWork05 теперь точно доделана)
This commit is contained in:
parent
b02bce0387
commit
67d28053af
@ -14,7 +14,7 @@ namespace AirBomber
|
|||||||
{
|
{
|
||||||
DrawningBomber _airBomber = null;
|
DrawningBomber _airBomber = null;
|
||||||
|
|
||||||
private event AirBomberDelegate EventAddAirBomber;
|
private Action<DrawningBomber> EventAddAirBomber;
|
||||||
public FormAirBomberConfig()
|
public FormAirBomberConfig()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@ -39,11 +39,11 @@ namespace AirBomber
|
|||||||
pictureBoxObject.Image = bmp;
|
pictureBoxObject.Image = bmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddEvent(AirBomberDelegate ev)
|
public void AddEvent(Action<DrawningBomber> ev)
|
||||||
{
|
{
|
||||||
if (EventAddAirBomber == null)
|
if (EventAddAirBomber == null)
|
||||||
{
|
{
|
||||||
EventAddAirBomber = new AirBomberDelegate(ev);
|
EventAddAirBomber = ev;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user