laba6 Кувшинов Тимур ПИбд-21 Простая #9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user