исправления
This commit is contained in:
parent
782f65bd28
commit
48371b6261
@ -16,7 +16,7 @@ namespace HoistingCrane
|
|||||||
DrawingHoistingCrane _hoistingCrane = null;
|
DrawingHoistingCrane _hoistingCrane = null;
|
||||||
public DrawingHoistingCrane SelectedHoistingCrane { get; private set; }
|
public DrawingHoistingCrane SelectedHoistingCrane { get; private set; }
|
||||||
//событие
|
//событие
|
||||||
private event HoistingCraneDelegate EventAddHoistingCrane;
|
private event Action<DrawingHoistingCrane> EventAddHoistingCrane;
|
||||||
//конструктор
|
//конструктор
|
||||||
public FormHoistingCraneConfig()
|
public FormHoistingCraneConfig()
|
||||||
{
|
{
|
||||||
@ -42,11 +42,11 @@ namespace HoistingCrane
|
|||||||
}
|
}
|
||||||
|
|
||||||
//добавление события
|
//добавление события
|
||||||
public void AddEvent(HoistingCraneDelegate ev)
|
public void AddEvent(Action<DrawingHoistingCrane> ev)
|
||||||
{
|
{
|
||||||
if (EventAddHoistingCrane == null)
|
if (EventAddHoistingCrane == null)
|
||||||
{
|
{
|
||||||
EventAddHoistingCrane = new HoistingCraneDelegate(ev);
|
EventAddHoistingCrane = new Action<DrawingHoistingCrane>(ev);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
namespace HoistingCrane
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Делегат для передачи объекта
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="hoistingCrane"></param>
|
|
||||||
public delegate void HoistingCraneDelegate(DrawingHoistingCrane hoistingCrane);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user