From aa6f30d71d67f57d5d6c094147c17e1d3c60574a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B0=D1=82=D1=8F=20=D0=98=D1=85=D0=BE=D0=BD=D0=BA?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0?= Date: Fri, 18 Nov 2022 22:19:04 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=8F=D1=82=D0=B0=D1=8F=20=D0=BB=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD=D0=B0=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MotorBoat/MotorBoat/BoatDelegate.cs | 10 ---------- MotorBoat/MotorBoat/FormBoatConfig.cs | 6 +++--- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 MotorBoat/MotorBoat/BoatDelegate.cs diff --git a/MotorBoat/MotorBoat/BoatDelegate.cs b/MotorBoat/MotorBoat/BoatDelegate.cs deleted file mode 100644 index 873b741..0000000 --- a/MotorBoat/MotorBoat/BoatDelegate.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MotorBoat -{ - public delegate void BoatDelegate(DrawningBoat boat); -} diff --git a/MotorBoat/MotorBoat/FormBoatConfig.cs b/MotorBoat/MotorBoat/FormBoatConfig.cs index 8c2cc68..dfb9e81 100644 --- a/MotorBoat/MotorBoat/FormBoatConfig.cs +++ b/MotorBoat/MotorBoat/FormBoatConfig.cs @@ -12,7 +12,7 @@ namespace MotorBoat { public partial class FormBoatConfig : Form { - private event BoatDelegate EventAddBoat; + private event Action EventAddBoat; DrawningBoat _boat = null; public FormBoatConfig() { @@ -28,11 +28,11 @@ namespace MotorBoat buttonCancel.Click += (s, a) => Close(); } - public void AddEvent(BoatDelegate ev) + public void AddEvent(Action ev) { if (EventAddBoat == null) { - EventAddBoat = new BoatDelegate(ev); + EventAddBoat = new Action(ev); } else {