PIbd-11_Zakharov_I.E._LabWork05_Simple #5
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user