diff --git a/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs b/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs index bb58a8a..2d4512a 100644 --- a/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs +++ b/HoistingCrane/HoistingCrane/FormHoistingCraneConfig.cs @@ -16,7 +16,7 @@ namespace HoistingCrane DrawingHoistingCrane _hoistingCrane = null; public DrawingHoistingCrane SelectedHoistingCrane { get; private set; } //событие - private event HoistingCraneDelegate EventAddHoistingCrane; + private event Action EventAddHoistingCrane; //конструктор public FormHoistingCraneConfig() { @@ -42,11 +42,11 @@ namespace HoistingCrane } //добавление события - public void AddEvent(HoistingCraneDelegate ev) + public void AddEvent(Action ev) { if (EventAddHoistingCrane == null) { - EventAddHoistingCrane = new HoistingCraneDelegate(ev); + EventAddHoistingCrane = new Action(ev); } else { diff --git a/HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs b/HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs deleted file mode 100644 index 8f2107d..0000000 --- a/HoistingCrane/HoistingCrane/HoistingCraneDelegate.cs +++ /dev/null @@ -1,9 +0,0 @@ - -namespace HoistingCrane -{ - /// - /// Делегат для передачи объекта - /// - /// - public delegate void HoistingCraneDelegate(DrawingHoistingCrane hoistingCrane); -}