From daddb88352b1f6bc72993eaac67a18dc800a4541 Mon Sep 17 00:00:00 2001 From: maxim24052002 Date: Mon, 29 Jul 2024 21:03:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sailboat/Sailboat/BoatsGenericCollection.cs | 4 ++-- Sailboat/Sailboat/BoatsGenericStorage.cs | 6 +++--- Sailboat/Sailboat/DrawingBoat.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sailboat/Sailboat/BoatsGenericCollection.cs b/Sailboat/Sailboat/BoatsGenericCollection.cs index dba993e..3e6b5eb 100644 --- a/Sailboat/Sailboat/BoatsGenericCollection.cs +++ b/Sailboat/Sailboat/BoatsGenericCollection.cs @@ -28,7 +28,7 @@ namespace Sailboat.Generics /// /// Размер занимаемого объектом места (ширина) /// - private readonly int _placeSizeWidth = 160; + private readonly int _placeSizeWidth = 170; /// /// Размер занимаемого объектом места (высота) /// @@ -114,7 +114,7 @@ namespace Sailboat.Generics { for (int j = 0; j < _pictureHeight / _placeSizeHeight + 1; ++j) - {//линия рамзетки места + {//линия разметки места g.DrawLine(pen, i * _placeSizeWidth, j * _placeSizeHeight, i * _placeSizeWidth + _placeSizeWidth / 2, j * _placeSizeHeight); diff --git a/Sailboat/Sailboat/BoatsGenericStorage.cs b/Sailboat/Sailboat/BoatsGenericStorage.cs index 9e7844a..0eb3a8a 100644 --- a/Sailboat/Sailboat/BoatsGenericStorage.cs +++ b/Sailboat/Sailboat/BoatsGenericStorage.cs @@ -136,9 +136,9 @@ namespace Sailboat.Generics return false; } - using (StreamReader fs = File.OpenText(filename)) + using (StreamReader bs = File.OpenText(filename)) { - string str = fs.ReadLine(); + string str = bs.ReadLine(); if (str == null || str.Length == 0) { return false; @@ -151,7 +151,7 @@ namespace Sailboat.Generics _boatStorages.Clear(); string strs = ""; - while ((strs = fs.ReadLine()) != null) + while ((strs = bs.ReadLine()) != null) { if (strs == null) { diff --git a/Sailboat/Sailboat/DrawingBoat.cs b/Sailboat/Sailboat/DrawingBoat.cs index 147e12f..cb11f8a 100644 --- a/Sailboat/Sailboat/DrawingBoat.cs +++ b/Sailboat/Sailboat/DrawingBoat.cs @@ -56,8 +56,8 @@ namespace Sailboat.DrawingObjects { y = 0; } - _startPosX = x; - _startPosY = y + 18; + _startPosX = x + 5; + _startPosY = y + 17; } public bool CanMove(DirectionType direction) {