пара изменений

This commit is contained in:
ikswi 2024-04-18 09:50:55 +04:00
parent e946dbbd54
commit 433975003c

View File

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