PIbd-11_Chechevitcyn_S.A_AntiAircraftGun_Simple_LabWork6 #8

Closed
shaman_stepan wants to merge 4 commits from LabWork6 into LabWork5
Showing only changes of commit 30131211c3 - Show all commits

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