laba6 Кувшинов Тимур ПИбд-21 Простая #9

Closed
TImourka wants to merge 6 commits from laba6 into laba5
Showing only changes of commit 56317ae39d - Show all commits

View File

@ -86,10 +86,10 @@ namespace Laba1Loco
string[] set = record[1].Split(_separatorRecords, StringSplitOptions.RemoveEmptyEntries);
foreach (string elem in set.Reverse())
{
DrawingTrain car = elem?.CreateDrawingTrain(_separatorForObject, _pictureWidth, _pictureHeight);
if (car != null)
DrawingTrain train = elem?.CreateDrawingTrain(_separatorForObject, _pictureWidth, _pictureHeight);
if (train != null)
{
if (collection + car == -1)
if (collection + train == -1)
{
return false;
}