diff --git a/ProjectAirFighter/ProjectAirFighter/Entities/EntityAirFighter.cs b/ProjectAirFighter/ProjectAirFighter/Entities/EntityAirFighter.cs index da26864..29cc02d 100644 --- a/ProjectAirFighter/ProjectAirFighter/Entities/EntityAirFighter.cs +++ b/ProjectAirFighter/ProjectAirFighter/Entities/EntityAirFighter.cs @@ -9,7 +9,7 @@ public class EntityAirFighter : EntityWarPlane /// Дополнительный цвет (для опциональных элементов) /// public Color AdditionalColor { get; private set; } - public void setAdditionalColor(Color color) + public void SetAdditionalColor(Color color) { AdditionalColor = color; } diff --git a/ProjectAirFighter/ProjectAirFighter/Entities/EntityWarPlane.cs b/ProjectAirFighter/ProjectAirFighter/Entities/EntityWarPlane.cs index 62646df..a5c9c5c 100644 --- a/ProjectAirFighter/ProjectAirFighter/Entities/EntityWarPlane.cs +++ b/ProjectAirFighter/ProjectAirFighter/Entities/EntityWarPlane.cs @@ -19,7 +19,7 @@ public class EntityWarPlane /// Основной цвет /// public Color BodyColor { get; private set; } - public void setBodyColor(Color color) + public void SetBodyColor(Color color) { BodyColor = color; } diff --git a/ProjectAirFighter/ProjectAirFighter/FormPlaneConfig.cs b/ProjectAirFighter/ProjectAirFighter/FormPlaneConfig.cs index 56b8f05..70b3bd5 100644 --- a/ProjectAirFighter/ProjectAirFighter/FormPlaneConfig.cs +++ b/ProjectAirFighter/ProjectAirFighter/FormPlaneConfig.cs @@ -151,7 +151,7 @@ public partial class FormPlaneConfig : Form { if (_plane != null) { - _plane.EntityWarPlane.setBodyColor((Color)e.Data.GetData(typeof(Color))); + _plane.EntityWarPlane.SetBodyColor((Color)e.Data.GetData(typeof(Color))); DrawObject(); } } @@ -185,7 +185,7 @@ public partial class FormPlaneConfig : Form { if (_plane.EntityWarPlane is EntityAirFighter _airFighter) { - _airFighter.setAdditionalColor((Color)e.Data.GetData(typeof(Color))); + _airFighter.SetAdditionalColor((Color)e.Data.GetData(typeof(Color))); } DrawObject(); }