PIbd-11 Levchenko G.A. Lab Work 05 Base #5

Closed
Geo7312 wants to merge 6 commits from LabWork05 into LabWork04
Showing only changes of commit c6fad42dae - Show all commits

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