к сдаче

This commit is contained in:
pyzhov.egor
2024-03-25 22:50:54 +04:00
parent d17100f02d
commit 7f390beccd
2 changed files with 4 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ public abstract class AbstractCompany
{
Bitmap bitmap = new(_pictureWidth, _pictureHeight);
Graphics graphics = Graphics.FromImage(bitmap);
DrawBackgound(graphics);
DrawBackground(graphics);
SetObjectsPosition();
for (int i = 0; i < (_collection?.Count ?? 0); ++i)
@@ -105,7 +105,7 @@ public abstract class AbstractCompany
/// Вывод заднего фона
/// </summary>
/// <param name="g"></param>
protected abstract void DrawBackgound(Graphics g);
protected abstract void DrawBackground(Graphics g);
/// <summary>
/// Расстановка объектов

View File

@@ -14,7 +14,7 @@ public class BoatSharingService : AbstractCompany
{
}
protected override void DrawBackgound(Graphics g)
protected override void DrawBackground(Graphics g)
{
Color backgroundColor = Color.SkyBlue;
using (Brush brush = new SolidBrush(backgroundColor))
@@ -56,7 +56,7 @@ public class BoatSharingService : AbstractCompany
for (int i = 0; i < _collection?.Count; i++, col--)
{
_collection?.Get(i)?.SetPictureSize(_pictureWidth, _pictureHeight);
_collection?.Get(i)?.SetPosition(locCoord[row * numCols - col].Item1 + 5, locCoord[row * numCols - col].Item2 + 5);
_collection?.Get(i)?.SetPosition(locCoord[row * numCols - col].Item1 + 5, locCoord[row * numCols - col].Item2 + 9);
if (col == 1)
{
col = numCols + 1;