Небольшие правки.
This commit is contained in:
parent
dea236e608
commit
f75d1f1b7b
@ -25,7 +25,7 @@ namespace ProjectElectricLocomotive.Generics
|
|||||||
_pictureHeight = picHeight;
|
_pictureHeight = picHeight;
|
||||||
_collection = new SetGeneric<T>(width * height);
|
_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)
|
if (locomotive == null)
|
||||||
{
|
{
|
||||||
@ -33,7 +33,7 @@ namespace ProjectElectricLocomotive.Generics
|
|||||||
}
|
}
|
||||||
return collect?._collection.Insert(locomotive) ?? -1;
|
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);
|
T? locomotive = collect._collection.Get(pos);
|
||||||
if (locomotive != null)
|
if (locomotive != null)
|
||||||
@ -59,7 +59,7 @@ namespace ProjectElectricLocomotive.Generics
|
|||||||
{
|
{
|
||||||
for (int j = 0; j < _pictureHeight / _placeSizeHeight +
|
for (int j = 0; j < _pictureHeight / _placeSizeHeight +
|
||||||
1; ++j)
|
1; ++j)
|
||||||
{//линия рамзетки места
|
{
|
||||||
g.DrawLine(pen, i * _placeSizeWidth, j *
|
g.DrawLine(pen, i * _placeSizeWidth, j *
|
||||||
_placeSizeHeight, i * _placeSizeWidth + _placeSizeWidth / 2, j *
|
_placeSizeHeight, i * _placeSizeWidth + _placeSizeWidth / 2, j *
|
||||||
_placeSizeHeight);
|
_placeSizeHeight);
|
||||||
|
Loading…
Reference in New Issue
Block a user