Romanov E.V. LabWork5 #17
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user