5LAB #13

Closed
RomanovEgor wants to merge 6 commits from 5LAB into 4LAB
Showing only changes of commit c69dd461c0 - Show all commits

View File

@ -17,7 +17,7 @@ namespace HoistingCrane
public DrawingHoistingCrane SelectedHoistingCrane { get; private set; }
//событие
private event Action<DrawingHoistingCrane> EventAddHoistingCrane;
private event HoistingCraneDelegate EventAddHoistingCrane;
//конструктор
public FormHoistingCraneConfig()
@ -45,11 +45,11 @@ namespace HoistingCrane
}
//добавление события
public void AddEvent(Action<DrawingHoistingCrane> ev)
public void AddEvent(HoistingCraneDelegate ev)
{
if (EventAddHoistingCrane == null)
{
EventAddHoistingCrane = new Action<DrawingHoistingCrane>(ev);
EventAddHoistingCrane = new HoistingCraneDelegate(ev);
}
else
{