Правки

This commit is contained in:
VladaM 2024-03-08 12:11:51 +04:00
parent f3f35d54bf
commit 149ad0e89f
4 changed files with 10 additions and 25 deletions

View File

@ -1,9 +1,4 @@
using GasolineTanker.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GasolineTanker.Drawnings;
/// <summary>
@ -153,6 +148,14 @@ public class DrawningTanker
{
_startPosY = y - (endOfDrawingHeight - _pictureHeight);
}
if (x < 0)
{
_startPosX = 0;
}
if (y < 0)
{
_startPosY = 0;
}
}
/// <summary>

View File

@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GasolineTanker.Entities;
namespace GasolineTanker.Entities;
/// <summary>
/// Класс-сущность "Грузовик"

View File

@ -1,14 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
using GasolineTanker.Drawnings;
using GasolineTanker.Drawnings;
using GasolineTanker.MovementStrategy;
namespace GasolineTanker

View File

@ -1,8 +1,6 @@
using GasolineTanker.CollectionGenericObjects;
using GasolineTanker.Drawnings;
using GasolineTanker.Entities;
using Microsoft.Extensions.Logging;
using System.Windows.Forms;
namespace GasolineTanker;