Putilin P. A. LabWork5 #6

Merged
eegov merged 4 commits from LabWork5 into LabWork4 2022-11-07 11:49:35 +04:00
2 changed files with 3 additions and 11 deletions
Showing only changes of commit b328be5e87 - Show all commits

View File

@ -1,8 +0,0 @@
namespace AirplaneWithRadar
{
/// <summary>
/// Делегат для передачи объекта-самолета
/// </summary>
/// <param name="airplane"></param>
public delegate void AirplaneDelegate(DrawningAirplane airplane);
}

View File

@ -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
{