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

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

View File

@ -38,7 +38,7 @@ namespace Laba1Loco
foreach (KeyValuePair<string, TrainsGenericCollection<DrawingTrain, DrawningObjectTrain>> record in _trainStorages)
{
StringBuilder records = new StringBuilder();
foreach (DrawingTrain elem in record.Value.GetTrains.Reverse())
foreach (DrawingTrain elem in record.Value.GetTrains)
{
records.Append($"{elem?.GetDataForSave(_separatorForObject)}{_separatorRecords}");
}
@ -84,7 +84,7 @@ namespace Laba1Loco
}
TrainsGenericCollection<DrawingTrain, DrawningObjectTrain> collection = new(_pictureWidth, _pictureHeight);
string[] set = record[1].Split(_separatorRecords, StringSplitOptions.RemoveEmptyEntries);
foreach (string elem in set)
foreach (string elem in set.Reverse())
{
DrawingTrain car = elem?.CreateDrawingTrain(_separatorForObject, _pictureWidth, _pictureHeight);
if (car != null)