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);