Исправил названия методов

This commit is contained in:
Иван Захаров 2024-05-05 13:00:44 +04:00
parent ef89df2120
commit cfc0be75e0
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ public class EntityAirFighter : EntityWarPlane
/// Дополнительный цвет (для опциональных элементов) /// Дополнительный цвет (для опциональных элементов)
/// </summary> /// </summary>
public Color AdditionalColor { get; private set; } public Color AdditionalColor { get; private set; }
public void setAdditionalColor(Color color) public void SetAdditionalColor(Color color)
{ {
AdditionalColor = color; AdditionalColor = color;
} }

View File

@ -19,7 +19,7 @@ public class EntityWarPlane
/// Основной цвет /// Основной цвет
/// </summary> /// </summary>
public Color BodyColor { get; private set; } public Color BodyColor { get; private set; }
public void setBodyColor(Color color) public void SetBodyColor(Color color)
{ {
BodyColor = color; BodyColor = color;
} }

View File

@ -151,7 +151,7 @@ public partial class FormPlaneConfig : Form
{ {
if (_plane != null) if (_plane != null)
{ {
_plane.EntityWarPlane.setBodyColor((Color)e.Data.GetData(typeof(Color))); _plane.EntityWarPlane.SetBodyColor((Color)e.Data.GetData(typeof(Color)));
DrawObject(); DrawObject();
} }
} }
@ -185,7 +185,7 @@ public partial class FormPlaneConfig : Form
{ {
if (_plane.EntityWarPlane is EntityAirFighter _airFighter) if (_plane.EntityWarPlane is EntityAirFighter _airFighter)
{ {
_airFighter.setAdditionalColor((Color)e.Data.GetData(typeof(Color))); _airFighter.SetAdditionalColor((Color)e.Data.GetData(typeof(Color)));
} }
DrawObject(); DrawObject();
} }