переименовал ошибочку

This commit is contained in:
Timourka 2023-10-23 23:42:28 +04:00
parent 036252a578
commit a1f0b7d534
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ namespace Laba1Loco
/// Проход по списку /// Проход по списку
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public IEnumerable<T> GetCars(int? maxCars = null) public IEnumerable<T> GetTrains(int? maxCars = null)
{ {
for (int i = 0; i < _places.Count; ++i) for (int i = 0; i < _places.Count; ++i)
{ {

View File

@ -120,7 +120,7 @@ where U : IMoveableObject
private void DrawObjects(Graphics g) private void DrawObjects(Graphics g)
{ {
int i = 0; int i = 0;
foreach (var car in _collection.GetCars()) foreach (var car in _collection.GetTrains())
{ {
if (car != null) if (car != null)
{ {