Compare commits

...

3 Commits

Author SHA1 Message Date
b4742652ac d 2024-08-30 02:52:19 +04:00
10229736d9 ы 2024-08-30 02:32:10 +04:00
7208bf8c77 f 2024-08-30 02:28:16 +04:00
4 changed files with 9 additions and 7 deletions

View File

@ -56,11 +56,11 @@ namespace ProjectLocomotive.CollectionGenericObjects
/// Перегрузка оператора сложения для класса
/// </summary>
/// <param name="company">Компания</param>
/// <param name="сruiser">Добавляемый объект</param>
/// <param name="locomotive">Добавляемый объект</param>
/// <returns></returns>
public static int operator +(AbstractCompany company, DrawningLocomotive сruiser)
public static int operator +(AbstractCompany company, DrawningLocomotive locomotive)
{
return company._collection.Insert(сruiser);
return company._collection.Insert(locomotive);
}
/// <summary>

View File

@ -47,7 +47,7 @@ namespace ProjectLocomotive.CollectionGenericObjects
_collection.Get(i).SetPosition(_placeSizeWidth * curWidth + 10, curHeight * _placeSizeHeight + 10);
}
if (curWidth > width - 2)
if (curWidth > width - 3)
curWidth--;
else
{

View File

@ -48,11 +48,13 @@ namespace ProjectLocomotive.Drawnings
base.DrawTransport(g);
if (entityTLocomotive.Pipe)
{
Point[] points4 = { new Point(_startPosX.Value + 20, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value - 7), new Point(_startPosX.Value + 32, _startPosY.Value - 9), new Point(_startPosX.Value + 30, _startPosY.Value - 11), new Point(_startPosX.Value + 20, _startPosY.Value - 11), new Point(_startPosX.Value + 18, _startPosY.Value - 9), new Point(_startPosX.Value + 20, _startPosY.Value - 7), new Point(_startPosX.Value + 20, _startPosY.Value) };
g.FillPolygon(wheelBrush, points4);
}
if (entityTLocomotive.Fueltank)
{

View File

@ -41,7 +41,7 @@ namespace ProjectLocomotive
}
/// <summary>
/// Метод прорисовки круисера
/// Метод прорисовки поезда
/// </summary>
private void Draw()
{