исправление
This commit is contained in:
parent
7318377e3f
commit
9a51457f08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user