From cfc0be75e0567fe1eafcfcc9dd53643c96ab534a Mon Sep 17 00:00:00 2001 From: VirBiuM Date: Sun, 5 May 2024 13:00:44 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectAirFighter/Entities/EntityAirFighter.cs | 2 +- .../ProjectAirFighter/Entities/EntityWarPlane.cs | 2 +- ProjectAirFighter/ProjectAirFighter/FormPlaneConfig.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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(); }