Eliseev E.E. LabWork05 #6

Merged
eegov merged 11 commits from LabWork05 into LabWork04 2022-11-07 10:02:56 +04:00
2 changed files with 3 additions and 8 deletions
Showing only changes of commit bc439e0a87 - Show all commits

View File

@ -16,7 +16,7 @@ namespace Airbus
DrawningAirbus _plane = null;
//событие
private event PlaneDelegate EventAddPlane;
private event Action<DrawningAirbus> EventAddPlane;
//конструктор
public FormPlaneConfig()
@ -45,11 +45,11 @@ namespace Airbus
}
//добавление события
public void AddEvent(PlaneDelegate ev)
public void AddEvent(Action<DrawningAirbus> ev)
{
if (EventAddPlane == null)
{
EventAddPlane = new PlaneDelegate(ev);
EventAddPlane = new Action<DrawningAirbus>(ev);
}
else
{

View File

@ -1,5 +0,0 @@
namespace Airbus
{
//делегат для передачи объекта-самолёта
public delegate void PlaneDelegate(DrawningAirbus plane);
}