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