From 48371b6261afb2c8274a5e81bcc4a52fd3c3a1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?10=D0=93=20=D0=95=D0=B3=D0=BE=D1=80=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Sun, 4 Dec 2022 21:18:39 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs | 6 +++--- HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs diff --git a/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs b/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs index bb58a8a..2d4512a 100644 --- a/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs +++ b/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs @@ -16,7 +16,7 @@ namespace HoistingCrane DrawingHoistingCrane _hoistingCrane = null; public DrawingHoistingCrane SelectedHoistingCrane { get; private set; } //событие - private event HoistingCraneDelegate EventAddHoistingCrane; + private event Action EventAddHoistingCrane; //конструктор public FormHoistingCraneConfig() { @@ -42,11 +42,11 @@ namespace HoistingCrane } //добавление события - public void AddEvent(HoistingCraneDelegate ev) + public void AddEvent(Action ev) { if (EventAddHoistingCrane == null) { - EventAddHoistingCrane = new HoistingCraneDelegate(ev); + EventAddHoistingCrane = new Action(ev); } else { diff --git a/HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs b/HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs deleted file mode 100644 index 8f2107d..0000000 --- a/HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs +++ /dev/null @@ -1,9 +0,0 @@ - -namespace HoistingCrane -{ - /// - /// Делегат для передачи объекта - /// - /// - public delegate void HoistingCraneDelegate(DrawingHoistingCrane hoistingCrane); -}