PIbd-21 Sagirov M.M. LinerBase Lab3 #8

Closed
Marselchii wants to merge 6 commits from lab3 into lab2
Showing only changes of commit 542fe732ec - Show all commits

View File

@ -122,22 +122,6 @@ namespace Liner.Generics
/// <param name="g"></param>
private void DrawObjects(Graphics g)
{
/*int iX = ((_pictureWidth / _placeSizeWidth) - 1) * _placeSizeWidth;
int iY = 0;
for (int i = 0; i < _collection.Count; i++)
{
_collection.Get(i)?.SetPosition(iX,iY);
_collection.Get(i)?.DrawTransport(g);
if(_collection.Get(i) != null)
{
iY += _placeSizeHeight;
if(iY + _placeSizeHeight >= _pictureHeight)
{
iY = 0;
iX -= _placeSizeWidth;
}
}
}*/
int iX = ((_pictureWidth / _placeSizeWidth) - 1) * _placeSizeWidth;
int iY = 0;
for (int i = 0; i < _collection.Count; i++)