LabWork05 теперь точно доделана)

This commit is contained in:
Артём Алейкин 2022-11-12 17:43:00 +04:00
parent b02bce0387
commit 67d28053af

View File

@ -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
{