From c6fad42dae5d14a3229806ef43742404cad5b781 Mon Sep 17 00:00:00 2001 From: Geo7312 Date: Fri, 10 May 2024 20:32:11 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectTrolleybus/FormTrolleyBConfig.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ProjectTrolleybus/ProjectTrolleybus/FormTrolleyBConfig.cs b/ProjectTrolleybus/ProjectTrolleybus/FormTrolleyBConfig.cs index 085d6c8..510714e 100644 --- a/ProjectTrolleybus/ProjectTrolleybus/FormTrolleyBConfig.cs +++ b/ProjectTrolleybus/ProjectTrolleybus/FormTrolleyBConfig.cs @@ -17,7 +17,7 @@ public partial class FormTrolleyBConfig : Form /// /// Событие для передачи объекта /// - private event TrolleyBDelegate? TrolleyBDelegate; + private event Action TrolleyBDelegate; /// /// Конструктор @@ -36,16 +36,16 @@ public partial class FormTrolleyBConfig : Form buttonCancel.Click += (s, e) => Close(); - + } /// /// Привязка внешнего метода к событию /// /// - public void AddEvent(TrolleyBDelegate trolleyBDelegate) + public void AddEvent(Action excavatorDelegate) { - TrolleyBDelegate = trolleyBDelegate; + TrolleyBDelegate += excavatorDelegate; } /// @@ -124,7 +124,7 @@ public partial class FormTrolleyBConfig : Form } } - private void LabelColor_DragDrop(object sender, DragEventArgs e) + private void labelColor_DragDrop(object sender, DragEventArgs e) { if (_trolleyB == null) {