From 67d28053af7f51c0af5453c8d3ea21c3cc7626ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Sat, 12 Nov 2022 17:43:00 +0400 Subject: [PATCH] =?UTF-8?q?LabWork05=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D1=8C=20=D1=82=D0=BE=D1=87=D0=BD=D0=BE=20=D0=B4=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B0=D0=BD=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirBomber/AirBomber/FormAirBomberConfig.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AirBomber/AirBomber/FormAirBomberConfig.cs b/AirBomber/AirBomber/FormAirBomberConfig.cs index 754d5b8..51e0803 100644 --- a/AirBomber/AirBomber/FormAirBomberConfig.cs +++ b/AirBomber/AirBomber/FormAirBomberConfig.cs @@ -14,7 +14,7 @@ namespace AirBomber { DrawningBomber _airBomber = null; - private event AirBomberDelegate EventAddAirBomber; + private Action EventAddAirBomber; public FormAirBomberConfig() { InitializeComponent(); @@ -39,11 +39,11 @@ namespace AirBomber pictureBoxObject.Image = bmp; } - public void AddEvent(AirBomberDelegate ev) + public void AddEvent(Action ev) { if (EventAddAirBomber == null) { - EventAddAirBomber = new AirBomberDelegate(ev); + EventAddAirBomber = ev; } else {