Небольшие правки.

This commit is contained in:
Андрей Байгулов 2023-10-29 18:50:36 +04:00
parent dea236e608
commit f75d1f1b7b

View File

@ -25,7 +25,7 @@ namespace ProjectElectricLocomotive.Generics
_pictureHeight = picHeight;
_collection = new SetGeneric<T>(width * height);
}
public static int operator + (LocomotivesGenericCollection<T, U> collect, T? locomotive)
public static int operator +(LocomotivesGenericCollection<T, U> collect, T? locomotive)
{
if (locomotive == null)
{
@ -33,7 +33,7 @@ namespace ProjectElectricLocomotive.Generics
}
return collect?._collection.Insert(locomotive) ?? -1;
}
public static bool operator - (LocomotivesGenericCollection<T, U> collect, int pos)
public static bool operator -(LocomotivesGenericCollection<T, U> 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);