последние изменения

This commit is contained in:
AnnaLioness 2023-10-20 17:27:53 +04:00
parent 146d39f5f0
commit 974fa03ade
2 changed files with 2 additions and 15 deletions

View File

@ -155,7 +155,7 @@ namespace Lab1ContainersShip.DrawingObjects
return;
}
Pen pen = new Pen(Color.Black);
//Brush adbrush = new SolidBrush(EntityShip.AdditionalColor);
Brush brBlue = new SolidBrush(Color.Blue);
Brush brBody = new SolidBrush(EntityShip.BodyColor);
// заполнение борта

View File

@ -21,20 +21,7 @@ namespace Lab1ContainersShip.Entities
/// Основной цвет
/// </summary>
public Color BodyColor { get; private set; }
/// <summary>
/// Дополнительный цвет (для опциональных элементов)
/// </summary>
//public Color AdditionalColor { get; private set; }
/// <summary>
/// Признак (опция) наличия крана
/// </summary>
//public bool Crane { get; private set; }
/// <summary>
/// Признак (опция) наличия контейнеров
/// </summary>
//public bool Conteiners { get; private set; }
public double Step => (double)Speed * 100 / Weight;
public EntityShip(int speed, double weight, Color bodyColor)
{