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

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

View File

@ -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>
/// Прорисовка объекта /// Прорисовка объекта