From fac6bdd2150bc26a887cae5f8cf7b81938f77206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=94?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=BB=D0=BE=D0=B2?= Date: Sat, 2 Dec 2023 23:53:20 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BD=D1=8F=D1=82=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Project_DumpTruck/FormTruckConfig.cs | 4 ++-- .../Project_DumpTruck/TruckDelegate.cs | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 Project_DumpTruck/Project_DumpTruck/TruckDelegate.cs diff --git a/Project_DumpTruck/Project_DumpTruck/FormTruckConfig.cs b/Project_DumpTruck/Project_DumpTruck/FormTruckConfig.cs index 9054dc7..bc48611 100644 --- a/Project_DumpTruck/Project_DumpTruck/FormTruckConfig.cs +++ b/Project_DumpTruck/Project_DumpTruck/FormTruckConfig.cs @@ -21,7 +21,7 @@ namespace Project_DumpTruck /// /// Событие /// - private event TruckDelegate? EventAddTruck; + private event Action EventAddTruck; /// /// Конструктор /// @@ -56,7 +56,7 @@ namespace Project_DumpTruck /// Добавление события /// /// Привязанный метод - public void AddEvent(TruckDelegate ev) + public void AddEvent(Action ev) { if (EventAddTruck == null) { diff --git a/Project_DumpTruck/Project_DumpTruck/TruckDelegate.cs b/Project_DumpTruck/Project_DumpTruck/TruckDelegate.cs deleted file mode 100644 index 6761faa..0000000 --- a/Project_DumpTruck/Project_DumpTruck/TruckDelegate.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Project_DumpTruck.DrawningObjects; - -namespace Project_DumpTruck -{ - /// - /// Делегат для передачи объекта-автомобиля - /// - /// - public delegate void TruckDelegate(DrawningTruck Truck); -}