Готовая 5 лаба, проверенная

This commit is contained in:
Ctepa 2024-04-08 12:53:39 +03:00
parent a5dec11857
commit 30131211c3

View File

@ -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;
}