diff --git a/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericCollection.cs b/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericCollection.cs index 2e3ee3e..aaa36a9 100644 --- a/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericCollection.cs +++ b/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericCollection.cs @@ -25,7 +25,7 @@ namespace ProjectElectricLocomotive.Generics _pictureHeight = picHeight; _collection = new SetGeneric(width * height); } - public static int operator + (LocomotivesGenericCollection collect, T? locomotive) + public static int operator +(LocomotivesGenericCollection collect, T? locomotive) { if (locomotive == null) { @@ -33,7 +33,7 @@ namespace ProjectElectricLocomotive.Generics } return collect?._collection.Insert(locomotive) ?? -1; } - public static bool operator - (LocomotivesGenericCollection collect, int pos) + public static bool operator -(LocomotivesGenericCollection collect, int pos) { T? locomotive = collect._collection.Get(pos); if (locomotive != null) @@ -59,7 +59,7 @@ namespace ProjectElectricLocomotive.Generics { for (int j = 0; j < _pictureHeight / _placeSizeHeight + 1; ++j) - {//линия рамзетки места + { g.DrawLine(pen, i * _placeSizeWidth, j * _placeSizeHeight, i * _placeSizeWidth + _placeSizeWidth / 2, j * _placeSizeHeight);