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