From f75d1f1b7b7fd64e4023ee2e9e6984227d582cdb Mon Sep 17 00:00:00 2001 From: tellsense Date: Sun, 29 Oct 2023 18:50:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ElectricLocomotive/LocomotivesGenericCollection.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);