From c8545fdb07b982f38f4648588cce65b0715aabfa Mon Sep 17 00:00:00 2001 From: tellsense Date: Mon, 27 Nov 2023 00:36:05 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs | 2 +- .../ElectricLocomotive/LocomotivesGenericStorage.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs b/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs index fd063a4..5218aba 100644 --- a/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs +++ b/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs @@ -17,7 +17,7 @@ namespace ProjectElectricLocomotive.DrawingObjects /// Ширина /// Высота /// Объект - public static DrawingLocomotive? CreateDrawningCar(this string info, char + public static DrawingLocomotive? CreateDrawningLocomotive(this string info, char separatorForObject, int width, int height) { string[] strs = info.Split(separatorForObject); diff --git a/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs b/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs index 68f1489..0c46d87 100644 --- a/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs +++ b/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs @@ -169,9 +169,9 @@ namespace ProjectElectricLocomotive.Generics } LocomotivesGenericCollection collection = new(_pictureWidth, _pictureHeight); string[] set = record[1].Split(_separatorRecords, StringSplitOptions.RemoveEmptyEntries); - foreach (string thing in set) + foreach (string elem in set) { - DrawingLocomotive? loco = thing?.CreateDrawingLocomotive(_separatorForObject, _pictureWidth, _pictureHeight); + DrawingLocomotive? loco = elem?.CreateDrawningLocomotive(_separatorForObject, _pictureWidth, _pictureHeight); if (loco != null) { if ((collection + loco) == -1)