переименовал ошибочку
This commit is contained in:
parent
036252a578
commit
a1f0b7d534
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user