Все, кроме доп
This commit is contained in:
parent
e88452ca9b
commit
1638dabe69
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user