diff --git a/ProjectDumpTruck/ProjectDumpTruck.sln b/ProjectDumpTruck/ProjectDumpTruck.sln
new file mode 100644
index 0000000..c4a0661
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.7.34024.191
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectDumpTruck", "ProjectDumpTruck\ProjectDumpTruck.csproj", "{0045C558-05F7-4B43-8DE8-C584B0F61ED9}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {0045C558-05F7-4B43-8DE8-C584B0F61ED9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0045C558-05F7-4B43-8DE8-C584B0F61ED9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0045C558-05F7-4B43-8DE8-C584B0F61ED9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0045C558-05F7-4B43-8DE8-C584B0F61ED9}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {3D9D0B1A-F218-49F4-953E-48B3D60F206A}
+ EndGlobalSection
+EndGlobal
diff --git a/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs b/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs
new file mode 100644
index 0000000..82478f9
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectDumpTruck;
+
+///
+/// Напривление перемещения
+///
+public enum DirectionType
+{
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+ ///
+ /// Влево
+ ///
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+ Right = 4,
+}
diff --git a/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTruck.cs b/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTruck.cs
new file mode 100644
index 0000000..fd2513c
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTruck.cs
@@ -0,0 +1,252 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectDumpTruck;
+
+///
+/// Класс, отвечающий за прорисовку и перемещение
+///
+public class DrawningDumpTruck
+{
+ ///
+ /// Класс-сущность
+ ///
+ public EntityDumpTruck? EntityDumpTruck { get; private set; }
+ ///
+ /// Ширина окна
+ ///
+ private int? _pictureWidth;
+ ///
+ /// Высота окна
+ ///
+ private int? _pictureHeight;
+ ///
+ /// Левая координата прорисовки автомобиля
+ ///
+ private int? _startPosX;
+ ///
+ /// Верхняя кооридната прорисовки автомобиля
+ ///
+ private int? _startPosY;
+ ///
+ /// Ширина прорисовки самосвала
+ ///
+ private readonly int _drawningDumpTruckWidth = 116;
+ ///
+ /// Высота прорисовки самосвала
+ ///
+ private readonly int _drawingDumpTruckHeight = 100;
+
+ ///
+ ///
+ /// Инициализация свойств
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия кузова
+ /// Признак наличия тента
+ public void Init(int speed, double weight, Color bodyColor, Color
+ additionalColor, bool body, bool tent)
+ {
+ EntityDumpTruck = new EntityDumpTruck();
+ EntityDumpTruck.Init(speed, weight, bodyColor, additionalColor,
+ body, tent);
+ _pictureWidth = null;
+ _pictureHeight = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+
+
+ ///
+ /// Установка границ поля
+ ///
+ /// Ширина поля
+ /// Высота поля
+ /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах
+ public bool SetPictureSize(int width, int height)
+ {
+ // TODO проверка, что объект "влезает" в размеры поля
+ // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена
+ if (_drawningDumpTruckWidth > width || _drawingDumpTruckHeight > height)
+ {
+ return false;
+ }
+
+ if (_pictureWidth.HasValue && width != _pictureWidth || _pictureHeight.HasValue && height != _pictureHeight)
+ {
+ if (_startPosX + _drawningDumpTruckWidth > width)
+ {
+ _startPosX -= _drawningDumpTruckWidth;
+ }
+
+ if (_startPosY + _drawingDumpTruckHeight > height)
+ {
+ _startPosY -= _drawingDumpTruckHeight;
+ }
+ }
+
+ _pictureWidth = width;
+ _pictureHeight = height;
+ return true;
+ }
+
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+
+ if (x < 0)
+ {
+ x = 0;
+ }
+ if (x + _drawningDumpTruckWidth > _pictureWidth)
+ {
+ x = (int)_pictureWidth - _drawningDumpTruckWidth;
+ }
+ if (y < 0)
+ {
+ y = 0;
+ }
+ if (y + _drawingDumpTruckHeight > _pictureHeight)
+ {
+ y = (int)_pictureHeight - _drawingDumpTruckHeight;
+
+ }
+
+ // TODO если при установке объекта в эти координаты, он будет "выходить" за границы формы
+ // то надо изменить координаты, чтобы он оставался в этих границах
+ _startPosX = x;
+ _startPosY = y;
+
+ }
+
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ /// true - перемещене выполнено, false - перемещение невозможно
+ public bool MoveTransport(DirectionType direction)
+ {
+ if (EntityDumpTruck == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return false;
+ }
+
+ switch (direction)
+ {
+ //влево
+ case DirectionType.Left:
+ if (_startPosX.Value - EntityDumpTruck.Step > 0)
+ {
+ _startPosX -= (int)EntityDumpTruck.Step;
+ }
+ return true;
+ //вверх
+ case DirectionType.Up:
+ if (_startPosY.Value - EntityDumpTruck.Step > 0)
+ {
+ _startPosY -= (int)EntityDumpTruck.Step;
+ }
+ return true;
+ // вправо
+ case DirectionType.Right:
+ if (_startPosX.Value + _drawningDumpTruckWidth < _pictureWidth)
+ {
+ _startPosX += (int)EntityDumpTruck.Step;
+ }
+ return true;
+ //вниз
+ case DirectionType.Down:
+ if (_startPosY.Value + _drawingDumpTruckHeight < _pictureHeight)
+ {
+ _startPosY += (int)EntityDumpTruck.Step;
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityDumpTruck == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return;
+ }
+
+ Pen pen = new(Color.Black);
+ Brush additionalBrush = new SolidBrush(EntityDumpTruck.AdditionalColor);
+
+ Brush brBody = new SolidBrush(EntityDumpTruck.AdditionalColor);
+
+ if (EntityDumpTruck.Body)
+ {
+ Point[] body =
+ {
+ new Point (_startPosX.Value, _startPosY.Value + 15),
+ new Point (_startPosX.Value + 77, _startPosY.Value + 15),
+ new Point (_startPosX.Value + 77, _startPosY.Value + 50),
+ new Point (_startPosX.Value + 20, _startPosY.Value + 50)
+ };
+ g.DrawPolygon(pen, points: body);
+
+ g.FillPolygon(brBody, body);
+ }
+
+ if (EntityDumpTruck.Tent && EntityDumpTruck.Body)
+ {
+ Point[] tent =
+ {
+ new Point (_startPosX.Value, _startPosY.Value + 13),
+ new Point (_startPosX.Value + 39, _startPosY.Value),
+ new Point (_startPosX.Value + 77, _startPosY.Value + 13)
+ };
+ g.DrawPolygon(pen, points: tent);
+
+ g.FillPolygon(brBody, tent);
+ }
+
+ //Границы самосвала
+ g.DrawRectangle(pen, _startPosX.Value + 10, _startPosY.Value + 53, 100, 13);
+ g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value + 15, 30, 36);
+ g.DrawRectangle(pen, _startPosX.Value + 85, _startPosY.Value + 20, 20, 20);
+
+ // Колеса
+ g.DrawEllipse(pen, _startPosX.Value + 10, _startPosY.Value + 67, 25, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 38, _startPosY.Value + 67, 25, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 83, _startPosY.Value + 67, 25, 25);
+
+ // Кузов
+ Brush br = new SolidBrush(EntityDumpTruck.BodyColor);
+ g.FillRectangle(br, _startPosX.Value + 10, _startPosY.Value + 53, 100, 13);
+ g.FillRectangle(br, _startPosX.Value + 80, _startPosY.Value + 15, 30, 36);
+
+
+ // Колеса
+ Brush brBlack = new SolidBrush(Color.Black);
+ g.FillEllipse(brBlack, _startPosX.Value + 10, _startPosY.Value + 67, 25, 25);
+ g.FillEllipse(brBlack, _startPosX.Value + 38, _startPosY.Value + 67, 25, 25);
+ g.FillEllipse(brBlack, _startPosX.Value + 83, _startPosY.Value + 67, 25, 25);
+
+ //Окно
+ Brush brBlue = new SolidBrush(Color.LightBlue);
+ g.FillRectangle(brBlue, _startPosX.Value + 85, _startPosY.Value + 20, 20, 20);
+
+ }
+}
diff --git a/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs b/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs
new file mode 100644
index 0000000..28045bc
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectDumpTruck;
+
+public class EntityDumpTruck
+{
+ ///
+ /// Скорость
+ ///
+ public int Speed { get; private set; }
+ ///
+ /// Вес
+ ///
+ public double Weight { get; private set; }
+ ///
+ /// Основной цвет
+ ///
+ public Color BodyColor { get; private set; }
+ ///
+ /// Дополнительный цвет (для опциональных элементов)
+ ///
+ public Color AdditionalColor { get; private set; }
+ ///
+ /// Наличие кузова
+ ///
+ public bool Body { get; private set; }
+ ///
+ /// Наличие тента
+ ///
+ public bool Tent { get; private set; }
+ ///
+ /// Шаг перемещения автомобиля
+ ///
+ public double Step => Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса спортивного автомобиля
+ ///
+ /// Скорость
+ /// Вес автомобиля
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия обвеса
+ /// Признак наличия антикрыла
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool body, bool tent)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ Body = body;
+ Tent = tent;
+ }
+}
diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.Designer.cs
new file mode 100644
index 0000000..c36ffcc
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.Designer.cs
@@ -0,0 +1,134 @@
+namespace ProjectDumpTruck
+{
+ partial class FormDumpTruck
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ pictureBoxDumpTruck = new PictureBox();
+ buttonCreateDumpTruck = new Button();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ buttonDown = new Button();
+ buttonRight = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxDumpTruck).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxDumpTruck
+ //
+ pictureBoxDumpTruck.Dock = DockStyle.Fill;
+ pictureBoxDumpTruck.Location = new Point(0, 0);
+ pictureBoxDumpTruck.Name = "pictureBoxDumpTruck";
+ pictureBoxDumpTruck.Size = new Size(894, 545);
+ pictureBoxDumpTruck.TabIndex = 0;
+ pictureBoxDumpTruck.TabStop = false;
+ //
+ // buttonCreateDumpTruck
+ //
+ buttonCreateDumpTruck.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreateDumpTruck.Location = new Point(14, 505);
+ buttonCreateDumpTruck.Name = "buttonCreateDumpTruck";
+ buttonCreateDumpTruck.Size = new Size(94, 29);
+ buttonCreateDumpTruck.TabIndex = 1;
+ buttonCreateDumpTruck.Text = "Создать";
+ buttonCreateDumpTruck.UseVisualStyleBackColor = true;
+ buttonCreateDumpTruck.Click += ButtonCreateDumpTruck_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.Left;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonLeft.Location = new Point(761, 500);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(35, 35);
+ buttonLeft.TabIndex = 2;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonUp.BackgroundImage = Properties.Resources.Up;
+ buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUp.Location = new Point(803, 460);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(35, 35);
+ buttonUp.TabIndex = 3;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.Down;
+ buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDown.Location = new Point(803, 500);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(35, 35);
+ buttonDown.TabIndex = 4;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.Right;
+ buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonRight.Location = new Point(844, 500);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(35, 35);
+ buttonRight.TabIndex = 5;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // FormDumpTruck
+ //
+ AutoScaleDimensions = new SizeF(8F, 20F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(894, 545);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonCreateDumpTruck);
+ Controls.Add(pictureBoxDumpTruck);
+ Name = "FormDumpTruck";
+ Text = "Самосвал";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxDumpTruck).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxDumpTruck;
+ private Button buttonCreateDumpTruck;
+ private Button buttonLeft;
+ private Button buttonUp;
+ private Button buttonDown;
+ private Button buttonRight;
+ }
+}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.cs b/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.cs
new file mode 100644
index 0000000..abeb332
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.cs
@@ -0,0 +1,100 @@
+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;
+
+namespace ProjectDumpTruck
+{
+ public partial class FormDumpTruck : Form
+ {
+ ///
+ /// Поле-объект для прорисовки объекта
+ ///
+ private DrawningDumpTruck? _drawningDumpTruck;
+ ///
+ /// Конструктор формы
+ ///
+ public FormDumpTruck()
+ {
+ InitializeComponent();
+ }
+ ///
+ /// Метод прорисовки машины
+ ///
+ private void Draw()
+ {
+ if (_drawningDumpTruck == null)
+ {
+ return;
+ }
+
+ Bitmap bmp = new(pictureBoxDumpTruck.Width, pictureBoxDumpTruck.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningDumpTruck.DrawTransport(gr);
+ pictureBoxDumpTruck.Image = bmp;
+ }
+ ///
+ /// Обработка нажатия кнопки "Создать"
+ ///
+ ///
+ ///
+ private void ButtonCreateDumpTruck_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningDumpTruck = new DrawningDumpTruck();
+ _drawningDumpTruck.Init(random.Next(100, 300), random.Next(1000, 3000),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
+ Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));
+ _drawningDumpTruck.SetPictureSize(pictureBoxDumpTruck.Width, pictureBoxDumpTruck.Height);
+
+
+ _drawningDumpTruck.SetPosition(random.Next(10, 100), random.Next(10, 100));
+
+ Draw();
+ }
+ ///
+ /// Перемещение объекта по форме (нажатие кнопок навигации)
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningDumpTruck == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ bool result = false;
+ switch (name)
+ {
+ case "buttonUp":
+ result =
+ _drawningDumpTruck.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ result =
+ _drawningDumpTruck.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ result =
+ _drawningDumpTruck.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ result =
+ _drawningDumpTruck.MoveTransport(DirectionType.Right);
+ break;
+ }
+ if (result)
+ {
+ Draw();
+ }
+ }
+ }
+}
+
diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.resx b/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.resx
new file mode 100644
index 0000000..af32865
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/FormDumpTruck.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Program.cs b/ProjectDumpTruck/ProjectDumpTruck/Program.cs
new file mode 100644
index 0000000..6379f87
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/Program.cs
@@ -0,0 +1,17 @@
+namespace ProjectDumpTruck
+{
+ internal static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ // To customize application configuration such as set high DPI settings or default font,
+ // see https://aka.ms/applicationconfiguration.
+ ApplicationConfiguration.Initialize();
+ Application.Run(new FormDumpTruck());
+ }
+ }
+}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj b/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj
new file mode 100644
index 0000000..244387d
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj
@@ -0,0 +1,26 @@
+
+
+
+ WinExe
+ net7.0-windows
+ enable
+ true
+ enable
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..ea3260d
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectDumpTruck.Properties {
+ using System;
+
+
+ ///
+ /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
+ ///
+ // Этот класс создан автоматически классом StronglyTypedResourceBuilder
+ // с помощью такого средства, как ResGen или Visual Studio.
+ // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
+ // с параметром /str или перестройте свой проект VS.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProjectDumpTruck.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Перезаписывает свойство CurrentUICulture текущего потока для всех
+ /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Down {
+ get {
+ object obj = ResourceManager.GetObject("Down", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Left {
+ get {
+ object obj = ResourceManager.GetObject("Left", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Right {
+ get {
+ object obj = ResourceManager.GetObject("Right", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Up {
+ get {
+ object obj = ResourceManager.GetObject("Up", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.resx b/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.resx
new file mode 100644
index 0000000..ace1dd0
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.resx
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+ ..\Resources\Left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/Down.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/Down.png
new file mode 100644
index 0000000..a5ab776
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/Down.png differ
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/Left.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/Left.png
new file mode 100644
index 0000000..2389895
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/Left.png differ
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/Right.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/Right.png
new file mode 100644
index 0000000..69bd44f
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/Right.png differ
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/Up.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/Up.png
new file mode 100644
index 0000000..afd0a3f
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/Up.png differ