Все, кроме доп

This commit is contained in:
Tonb73 2024-04-15 08:42:20 +03:00
parent e88452ca9b
commit 1638dabe69

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>