4 лаба Кувшинов ПИбд-21 Простая #7

Closed
TImourka wants to merge 4 commits from laba4 into laba3
2 changed files with 2 additions and 2 deletions
Showing only changes of commit a1f0b7d534 - Show all commits

View File

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

View File

@ -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)
{