Правки
This commit is contained in:
parent
f3f35d54bf
commit
149ad0e89f
@ -1,9 +1,4 @@
|
|||||||
using GasolineTanker.Entities;
|
using GasolineTanker.Entities;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace GasolineTanker.Drawnings;
|
namespace GasolineTanker.Drawnings;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -153,6 +148,14 @@ public class DrawningTanker
|
|||||||
{
|
{
|
||||||
_startPosY = y - (endOfDrawingHeight - _pictureHeight);
|
_startPosY = y - (endOfDrawingHeight - _pictureHeight);
|
||||||
}
|
}
|
||||||
|
if (x < 0)
|
||||||
|
{
|
||||||
|
_startPosX = 0;
|
||||||
|
}
|
||||||
|
if (y < 0)
|
||||||
|
{
|
||||||
|
_startPosY = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace GasolineTanker.Entities;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace GasolineTanker.Entities;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Класс-сущность "Грузовик"
|
/// Класс-сущность "Грузовик"
|
||||||
|
@ -1,14 +1,4 @@
|
|||||||
using System;
|
using GasolineTanker.Drawnings;
|
||||||
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.MovementStrategy;
|
using GasolineTanker.MovementStrategy;
|
||||||
|
|
||||||
namespace GasolineTanker
|
namespace GasolineTanker
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using GasolineTanker.CollectionGenericObjects;
|
using GasolineTanker.CollectionGenericObjects;
|
||||||
using GasolineTanker.Drawnings;
|
using GasolineTanker.Drawnings;
|
||||||
using GasolineTanker.Entities;
|
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace GasolineTanker;
|
namespace GasolineTanker;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user