PIbd-11.Basalov.A.D.LabWork05.Simple #12

Closed
Tonby73 wants to merge 5 commits from LabWork5 into LabWork4
Showing only changes of commit 1638dabe69 - Show all commits

View File

@ -25,7 +25,7 @@ public partial class FormElectricLocomotiveConfig : Form
/// <summary>
/// Событие для передачи объекта
/// </summary>
private event LocomotiveDelegate? _locomotiveDelegate;
private event Action<DrawningLocomotive> _locomotiveDelegate;
/// <summary>
/// Конструктор
/// </summary>
@ -51,7 +51,7 @@ public partial class FormElectricLocomotiveConfig : Form
/// Привязка внешнего метода к событию
/// </summary>
/// <param name="locomotiveDelegate"></param>
public void AddEvent(LocomotiveDelegate locomotiveDelegate)
public void AddEvent(Action<DrawningLocomotive> locomotiveDelegate)
{
if (_locomotiveDelegate == null)
{
@ -63,6 +63,7 @@ public partial class FormElectricLocomotiveConfig : Form
}
}
/// <summary>
/// Прорисовка объекта
/// </summary>