Compare commits

..

No commits in common. "b4742652ac76d73d09365449f17d5f8bfdd4dbce" and "4511d78c10c175853707b5e89073d5d8b4e8e4df" have entirely different histories.

4 changed files with 7 additions and 9 deletions

View File

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

View File

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

View File

@ -48,13 +48,11 @@ 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()
{