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>
|
||||||
/// Событие
|
/// Событие
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private event AirplaneDelegate EventAddAirplane;
|
private event Action<DrawningAirplane> EventAddAirplane;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Конструктор
|
/// Конструктор
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -45,11 +45,11 @@
|
|||||||
/// Добавление события
|
/// Добавление события
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ev"></param>
|
/// <param name="ev"></param>
|
||||||
public void AddEvent(AirplaneDelegate ev)
|
public void AddEvent(Action<DrawningAirplane> ev)
|
||||||
{
|
{
|
||||||
if (EventAddAirplane == null)
|
if (EventAddAirplane == null)
|
||||||
{
|
{
|
||||||
EventAddAirplane = new AirplaneDelegate(ev);
|
EventAddAirplane = new (ev);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user