From 9a51457f089550ab60b26bdf76fb4400bda07fcd Mon Sep 17 00:00:00 2001 From: SVETLANA_8 Date: Sun, 14 Apr 2024 18:59:22 +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=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectByldozer/ProjectByldozer/FormCarConfig.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ProjectByldozer/ProjectByldozer/FormCarConfig.cs b/ProjectByldozer/ProjectByldozer/FormCarConfig.cs index 9c720aa..8151698 100644 --- a/ProjectByldozer/ProjectByldozer/FormCarConfig.cs +++ b/ProjectByldozer/ProjectByldozer/FormCarConfig.cs @@ -14,7 +14,8 @@ public partial class FormCarConfig : Form /// /// Событие для передачи объекта /// - private event TrackedCarDelegate? TrackedCarDelegate; + private event Action? TrackedCarDelegate; + /// /// конструктор /// @@ -36,11 +37,11 @@ public partial class FormCarConfig : Form /// Привязка внешнего метода к событию /// /// - public void AddEvent(TrackedCarDelegate TrackedcarDelegate) + public void AddEvent(Action TrackedcarDelegate) { TrackedCarDelegate += TrackedcarDelegate; } - + private void Panel_MouseDown(object? sender, MouseEventArgs e) { (sender as Control)?.DoDragDrop((sender as Control).BackColor, DragDropEffects.Move | DragDropEffects.Copy);