From a1f0b7d534ee01140d3d4866e2c6d163241eb3c6 Mon Sep 17 00:00:00 2001 From: Timourka Date: Mon, 23 Oct 2023 23:42:28 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE?= =?UTF-8?q?=D1=87=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laba1Loco/Laba1Loco/SetGeneric.cs | 2 +- Laba1Loco/Laba1Loco/TrainsGenericCollection.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Laba1Loco/Laba1Loco/SetGeneric.cs b/Laba1Loco/Laba1Loco/SetGeneric.cs index 9d81a36..a63353d 100644 --- a/Laba1Loco/Laba1Loco/SetGeneric.cs +++ b/Laba1Loco/Laba1Loco/SetGeneric.cs @@ -113,7 +113,7 @@ namespace Laba1Loco /// Проход по списку /// /// - public IEnumerable GetCars(int? maxCars = null) + public IEnumerable GetTrains(int? maxCars = null) { for (int i = 0; i < _places.Count; ++i) { diff --git a/Laba1Loco/Laba1Loco/TrainsGenericCollection.cs b/Laba1Loco/Laba1Loco/TrainsGenericCollection.cs index 75a69f2..83c66a1 100644 --- a/Laba1Loco/Laba1Loco/TrainsGenericCollection.cs +++ b/Laba1Loco/Laba1Loco/TrainsGenericCollection.cs @@ -120,7 +120,7 @@ where U : IMoveableObject private void DrawObjects(Graphics g) { int i = 0; - foreach (var car in _collection.GetCars()) + foreach (var car in _collection.GetTrains()) { if (car != null) {