fix
This commit is contained in:
parent
41a28dae59
commit
b328be5e87
@ -1,8 +0,0 @@
|
||||
namespace AirplaneWithRadar
|
||||
{
|
||||
/// <summary>
|
||||
/// Делегат для передачи объекта-самолета
|
||||
/// </summary>
|
||||
/// <param name="airplane"></param>
|
||||
public delegate void AirplaneDelegate(DrawningAirplane airplane);
|
||||
}
|
@ -12,7 +12,7 @@
|
||||
/// <summary>
|
||||
/// Событие
|
||||
/// </summary>
|
||||
private event AirplaneDelegate EventAddAirplane;
|
||||
private event Action<DrawningAirplane> EventAddAirplane;
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
/// </summary>
|
||||
@ -45,11 +45,11 @@
|
||||
/// Добавление события
|
||||
/// </summary>
|
||||
/// <param name="ev"></param>
|
||||
public void AddEvent(AirplaneDelegate ev)
|
||||
public void AddEvent(Action<DrawningAirplane> ev)
|
||||
{
|
||||
if (EventAddAirplane == null)
|
||||
{
|
||||
EventAddAirplane = new AirplaneDelegate(ev);
|
||||
EventAddAirplane = new (ev);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user