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