пара изменений
This commit is contained in:
parent
e946dbbd54
commit
433975003c
@ -41,7 +41,14 @@ public partial class FormMilitaryAircraftConfig : Form
|
|||||||
/// <param name="militaryAircraftDelegate"></param>
|
/// <param name="militaryAircraftDelegate"></param>
|
||||||
public void AddEvent(Action<DrawningMilitaryAircraft> militaryAircraftDelegate)
|
public void AddEvent(Action<DrawningMilitaryAircraft> militaryAircraftDelegate)
|
||||||
{
|
{
|
||||||
MilitaryAircraftDelegate += militaryAircraftDelegate;
|
if (MilitaryAircraftDelegate != null)
|
||||||
|
{
|
||||||
|
MilitaryAircraftDelegate = militaryAircraftDelegate;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MilitaryAircraftDelegate += militaryAircraftDelegate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user