PIbd-11_Chechevitcyn_S.A_AntiAircraftGun_Simple_LabWork6 #8
@ -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