исправление

This commit is contained in:
SVETLANA_8 2024-04-14 18:59:22 +04:00
parent 7318377e3f
commit 9a51457f08

View File

@ -14,7 +14,8 @@ public partial class FormCarConfig : Form
/// <summary>
/// Событие для передачи объекта
/// </summary>
private event TrackedCarDelegate? TrackedCarDelegate;
private event Action<DrawningTrackedCar>? TrackedCarDelegate;
/// <summary>
/// конструктор
/// </summary>
@ -36,11 +37,11 @@ public partial class FormCarConfig : Form
/// Привязка внешнего метода к событию
/// </summary>
/// <param name="TrackedcarDelegate"></param>
public void AddEvent(TrackedCarDelegate TrackedcarDelegate)
public void AddEvent(Action<DrawningTrackedCar> TrackedcarDelegate)
{
TrackedCarDelegate += TrackedcarDelegate;
}
private void Panel_MouseDown(object? sender, MouseEventArgs e)
{
(sender as Control)?.DoDragDrop((sender as Control).BackColor, DragDropEffects.Move | DragDropEffects.Copy);