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