Исправление ошибок

This commit is contained in:
Максим Егоров 2024-07-29 21:03:31 +03:00
parent 1d71499845
commit daddb88352
3 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ namespace Sailboat.Generics
/// <summary>
/// Размер занимаемого объектом места (ширина)
/// </summary>
private readonly int _placeSizeWidth = 160;
private readonly int _placeSizeWidth = 170;
/// <summary>
/// Размер занимаемого объектом места (высота)
/// </summary>
@ -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);

View File

@ -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)
{

View File

@ -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)
{