правки

This commit is contained in:
Geo7312 2024-05-10 20:32:11 +04:00
parent 4ae6b34ca3
commit c6fad42dae

View File

@ -17,7 +17,7 @@ public partial class FormTrolleyBConfig : Form
/// <summary>
/// Событие для передачи объекта
/// </summary>
private event TrolleyBDelegate? TrolleyBDelegate;
private event Action<DrawningTrolleyB> TrolleyBDelegate;
/// <summary>
/// Конструктор
@ -36,16 +36,16 @@ public partial class FormTrolleyBConfig : Form
buttonCancel.Click += (s, e) => Close();
}
/// <summary>
/// Привязка внешнего метода к событию
/// </summary>
/// <param name="trolleyBDelegate"></param>
public void AddEvent(TrolleyBDelegate trolleyBDelegate)
public void AddEvent(Action<DrawningTrolleyB> excavatorDelegate)
{
TrolleyBDelegate = trolleyBDelegate;
TrolleyBDelegate += excavatorDelegate;
}
/// <summary>
@ -124,7 +124,7 @@ public partial class FormTrolleyBConfig : Form
}
}
private void LabelColor_DragDrop(object sender, DragEventArgs e)
private void labelColor_DragDrop(object sender, DragEventArgs e)
{
if (_trolleyB == null)
{