PIbd-11_Zakharov_I.E._LabWork05_Simple #5

Closed
VirBiuM wants to merge 2 commits from LabWork05 into LabWork04
3 changed files with 4 additions and 4 deletions
Showing only changes of commit cfc0be75e0 - Show all commits

View File

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

View File

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

View File

@ -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();
}