PIBD-13_Fomichev_V.S._LabWork03_Simple_ #4

Closed
slavaxom9k wants to merge 5 commits from labwork03 into labwork02
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 3de0a2be47 - Show all commits

View File

@ -12,12 +12,12 @@ public abstract class AbstractCompany
/// <summary>
/// Размер места (ширина)
/// </summary>
protected readonly int _placeSizeWidth = 210;
protected readonly int _placeSizeWidth = 180;
/// <summary>
/// Размер места (высота)
/// </summary>
protected readonly int _placeSizeHeight = 80;
protected readonly int _placeSizeHeight = 100;
/// <summary>
/// Ширина окна

View File

@ -50,8 +50,8 @@ public class CarBase : AbstractCompany
}
if (_collection?.Get(i) != null)
{
_collection?.Get(i)?.SetPictureSize(_pictureWidth, _pictureHeight);
_collection?.Get(i)?.SetPosition(_placeSizeWidth * nowWidth + 30, nowHeight * _placeSizeHeight * 2 + 20);
_collection?.Get(i)?.SetPictureSize(_pictureWidth , _pictureHeight);
_collection?.Get(i)?.SetPosition(_placeSizeWidth * nowWidth + 10, nowHeight * _placeSizeHeight * 2 );
}
if (nowWidth < _pictureWidth / _placeSizeWidth - 1) nowWidth++;