Готовая 5 лаба, проверенная
This commit is contained in:
parent
a5dec11857
commit
30131211c3
@ -14,7 +14,7 @@ public partial class FormGunConfig : Form
|
||||
/// <summary>
|
||||
/// Событие для передачи объекта
|
||||
/// </summary>
|
||||
private event GunDelegate? _gunDelegate;
|
||||
private event Action<DrawningGun>? _gunDelegate;
|
||||
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
@ -38,7 +38,7 @@ public partial class FormGunConfig : Form
|
||||
/// Привязка внешнего метода к союытию
|
||||
/// </summary>
|
||||
/// <param name="gunDelegate"></param>
|
||||
public void AddEvent(GunDelegate gunDelegate)
|
||||
public void AddEvent(Action<DrawningGun> gunDelegate)
|
||||
{
|
||||
_gunDelegate += gunDelegate;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user