Изменение делегата
This commit is contained in:
parent
d4c66681d1
commit
c69dd461c0
@ -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