правки
This commit is contained in:
parent
4ae6b34ca3
commit
c6fad42dae
@ -17,7 +17,7 @@ public partial class FormTrolleyBConfig : Form
|
||||
/// <summary>
|
||||
/// Событие для передачи объекта
|
||||
/// </summary>
|
||||
private event TrolleyBDelegate? TrolleyBDelegate;
|
||||
private event Action<DrawningTrolleyB> TrolleyBDelegate;
|
||||
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
@ -36,16 +36,16 @@ public partial class FormTrolleyBConfig : Form
|
||||
|
||||
buttonCancel.Click += (s, e) => Close();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Привязка внешнего метода к событию
|
||||
/// </summary>
|
||||
/// <param name="trolleyBDelegate"></param>
|
||||
public void AddEvent(TrolleyBDelegate trolleyBDelegate)
|
||||
public void AddEvent(Action<DrawningTrolleyB> excavatorDelegate)
|
||||
{
|
||||
TrolleyBDelegate = trolleyBDelegate;
|
||||
TrolleyBDelegate += excavatorDelegate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -124,7 +124,7 @@ public partial class FormTrolleyBConfig : Form
|
||||
}
|
||||
}
|
||||
|
||||
private void LabelColor_DragDrop(object sender, DragEventArgs e)
|
||||
private void labelColor_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
if (_trolleyB == null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user