Borschevskaya A.A. Lab Work 3 #3

Merged
eegov merged 9 commits from lab3 into lab2 2022-10-28 09:17:17 +04:00
Showing only changes of commit bbd11c3210 - Show all commits

View File

@ -166,10 +166,11 @@ namespace ArmoredCar
/// <param name="g"></param>
private void DrawArmoredCars(Graphics g)
{
int width = _pictureWidth / _placeSizeWidth;
for (int i = 0; i < _setCars.Count; i++)
{
// TODO установка объекта
//_setCars.Get(i)?.SetObject(x, y, _pictureWidth, _pictureHeight);
{
_setCars.Get(i)?.SetObject(i % width * _placeSizeWidth + 10, i / width * _placeSizeHeight + 10, _pictureWidth, _pictureHeight);
_setCars.Get(i)?.DrawningObject(g);
}
}