diff --git a/DumpTruck/Direction.cs b/DumpTruck/Direction.cs
new file mode 100644
index 0000000..a576395
--- /dev/null
+++ b/DumpTruck/Direction.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DumpTruck
+{
+ public enum Direction
+ {
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+ ///
+ /// Влево
+ ///
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+ Right = 4
+ }
+}
diff --git a/DumpTruck/DrawingDumpTruck.cs b/DumpTruck/DrawingDumpTruck.cs
new file mode 100644
index 0000000..afc6ef0
--- /dev/null
+++ b/DumpTruck/DrawingDumpTruck.cs
@@ -0,0 +1,156 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DumpTruck
+{
+ public class DrawingDumpTruck
+ {
+ ///
+ /// Класс-сущность
+ ///
+ public EntityDumpTruck? EntityDumpTruck { get; private set; }
+ ///
+ /// Ширина окна
+ ///
+ private int _pictureWidth;
+ ///
+ /// Высота окна
+ ///
+ private int _pictureHeight;
+ ///
+ /// Левая координата прорисовки самосвала
+ ///
+ private int _startPosX;
+ ///
+ /// Верхняя кооридната прорисовки самосвала
+ ///
+ private int _startPosY;
+ ///
+ /// Ширина прорисовки самосвала
+ ///
+ private readonly int _truckWidth = 160;
+ ///
+ /// Высота прорисовки самосвала
+ ///
+ private readonly int _truckHeight = 90;
+
+
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет самосвала
+ /// Признак наличия тента
+ /// Признак наличия кузова
+ /// Цвет кузова
+ /// Цвет тента
+ /// Ширина картинки
+ /// Высота картинки
+ /// true - объект создан, false - проверка не пройдена, нельзя создать объект в этих размерах
+ public bool Init(int speed, double weight, Color bodyColor, bool tent, bool dumpBox, Color tentColor, Color dumpBoxColor, int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureHeight < _truckHeight || _pictureWidth < _truckWidth) return false;
+ EntityDumpTruck = new EntityDumpTruck();
+ EntityDumpTruck.Init(speed, weight, bodyColor, tent, dumpBox, tentColor, dumpBoxColor);
+ return true;
+ }
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (x < 0 || x + _truckWidth > _pictureWidth) { x = 0; }
+ if (y < 0 || y + _truckHeight > _pictureHeight) { y = 0; }
+ _startPosX = x;
+ _startPosY = y;
+ }
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ public void MoveTransport(Direction direction)
+ {
+ if (EntityDumpTruck == null)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ //влево
+ case Direction.Left:
+ if (_startPosX - EntityDumpTruck.Step > 0)
+ {
+ _startPosX -= (int)EntityDumpTruck.Step;
+ }
+ break;
+ //вверх
+ case Direction.Up:
+ if (_startPosY - EntityDumpTruck.Step > 0)
+ {
+ _startPosY -= (int)EntityDumpTruck.Step;
+ }
+ break;
+ // вправо
+ case Direction.Right:
+ if (_startPosX + _truckWidth + EntityDumpTruck.Step < _pictureWidth)
+ {
+ _startPosX += (int)EntityDumpTruck.Step;
+ }
+ break;
+ //вниз
+ case Direction.Down:
+ if (_startPosY + _truckHeight + EntityDumpTruck.Step < _pictureHeight)
+ {
+ _startPosY += (int)EntityDumpTruck.Step;
+ }
+ break;
+ }
+ }
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityDumpTruck == null)
+ {
+ return;
+ }
+ Brush brush = new SolidBrush(EntityDumpTruck.BodyColor);
+ g.FillRectangle(brush, _startPosX, _startPosY + 40, 160, 10);
+ g.FillRectangle(brush, _startPosX + 120, _startPosY, 40, 40);
+ g.FillEllipse(brush, _startPosX, _startPosY + 50, 40, 40);
+ g.FillEllipse(brush, _startPosX + 40, _startPosY + 50, 40, 40);
+ g.FillEllipse(brush, _startPosX + 120, _startPosY + 50, 40, 40);
+ if (EntityDumpTruck.DumpBox)
+ {
+ Brush brDumpBox = new SolidBrush(EntityDumpTruck.DumpBoxColor);
+ Point point1 = new Point(_startPosX + 20, _startPosY);
+ Point point2 = new Point(_startPosX + 120, _startPosY);
+ Point point3 = new Point(_startPosX + 100, _startPosY + 39);
+ Point point4 = new Point(_startPosX, _startPosY + 39);
+ Point[] dumpBoxPoints = { point1, point2, point3, point4};
+ g.FillPolygon(brDumpBox, dumpBoxPoints);
+ }
+ if (EntityDumpTruck.DumpBox && EntityDumpTruck.Tent)
+ {
+ Brush brTent = new SolidBrush(EntityDumpTruck.TentColor);
+ Point point1 = new Point(_startPosX + 15, _startPosY);
+ Point point2 = new Point(_startPosX + 120, _startPosY);
+ Point point3 = new Point(_startPosX + 115, _startPosY + 10);
+ Point point4 = new Point(_startPosX + 10, _startPosY + 10);
+ Point[] tentPoints = { point1, point2, point3, point4 };
+ g.FillPolygon(brTent, tentPoints);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck.csproj b/DumpTruck/DumpTruck.csproj
new file mode 100644
index 0000000..13ee123
--- /dev/null
+++ b/DumpTruck/DumpTruck.csproj
@@ -0,0 +1,26 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+ enable
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck.sln b/DumpTruck/DumpTruck.sln
index 6cdb821..194c49e 100644
--- a/DumpTruck/DumpTruck.sln
+++ b/DumpTruck/DumpTruck.sln
@@ -1,9 +1,9 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
-VisualStudioVersion = 17.3.32929.385
+VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DumpTruck", "DumpTruck\DumpTruck.csproj", "{26796F32-D785-418E-9A6B-E3BAC62BAFEA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DumpTruck", "DumpTruck.csproj", "{6B4E6B76-8A8E-41F4-8152-149554710311}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,15 +11,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {26796F32-D785-418E-9A6B-E3BAC62BAFEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {26796F32-D785-418E-9A6B-E3BAC62BAFEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {26796F32-D785-418E-9A6B-E3BAC62BAFEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {26796F32-D785-418E-9A6B-E3BAC62BAFEA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6B4E6B76-8A8E-41F4-8152-149554710311}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6B4E6B76-8A8E-41F4-8152-149554710311}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6B4E6B76-8A8E-41F4-8152-149554710311}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6B4E6B76-8A8E-41F4-8152-149554710311}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {379CC8BC-ED77-4529-A5E0-2F1171582BE4}
+ SolutionGuid = {E03F6674-51B1-427F-A0F7-7F63C642A734}
EndGlobalSection
EndGlobal
diff --git a/DumpTruck/DumpTruck/DumpTruck.csproj b/DumpTruck/DumpTruck/DumpTruck.csproj
deleted file mode 100644
index b57c89e..0000000
--- a/DumpTruck/DumpTruck/DumpTruck.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- WinExe
- net6.0-windows
- enable
- true
- enable
-
-
-
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/Form1.Designer.cs b/DumpTruck/DumpTruck/Form1.Designer.cs
deleted file mode 100644
index 073cfce..0000000
--- a/DumpTruck/DumpTruck/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace DumpTruck
-{
- partial class Form1
- {
- ///
- /// 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()
- {
- this.components = new System.ComponentModel.Container();
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Text = "Form1";
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/Form1.cs b/DumpTruck/DumpTruck/Form1.cs
deleted file mode 100644
index 2326120..0000000
--- a/DumpTruck/DumpTruck/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace DumpTruck
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/Program.cs b/DumpTruck/DumpTruck/Program.cs
deleted file mode 100644
index a716913..0000000
--- a/DumpTruck/DumpTruck/Program.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-namespace DumpTruck
-{
- 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 Form1());
- }
- }
-}
\ No newline at end of file
diff --git a/DumpTruck/EntityDumpTruck.cs b/DumpTruck/EntityDumpTruck.cs
new file mode 100644
index 0000000..f9b054a
--- /dev/null
+++ b/DumpTruck/EntityDumpTruck.cs
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net.NetworkInformation;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DumpTruck
+{
+ public class EntityDumpTruck
+ {
+ ///
+ /// Скорость
+ ///
+ public int Speed { get; private set; }
+ ///
+ /// Вес
+ ///
+ public double Weight { get; private set; }
+ ///
+ /// Основной цвет
+ ///
+ public Color BodyColor { get; private set; }
+ ///
+ /// Признак (опция) наличия тента
+ ///
+ public bool Tent { get; private set; }
+ ///
+ /// Признак (опция) наличия кузова
+ ///
+ public bool DumpBox { get; private set; }
+ ///
+ /// Цвет кузова
+ ///
+ public Color DumpBoxColor { get; private set; }
+ ///
+ /// Цвет тента
+ ///
+ public Color TentColor { get; private set; }
+ ///
+ /// Шаг
+ ///
+ public double Step => (double)Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса самосвала
+ ///
+ /// Скорость
+ /// Вес самосвала
+ /// Основной цвет самосвала
+ /// Признак наличия тента
+ /// Признак наличия кузова
+ /// Цвет кузова
+ /// Цвет тента
+ public void Init(int speed, double weight, Color bodyColor, bool tent, bool dumpBox, Color tentColor, Color dumpBoxColor)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ Tent = tent;
+ DumpBox = dumpBox;
+ DumpBoxColor = dumpBoxColor;
+ TentColor = tentColor;
+ }
+ }
+}
\ No newline at end of file
diff --git a/DumpTruck/FormDumpTruck.Designer.cs b/DumpTruck/FormDumpTruck.Designer.cs
new file mode 100644
index 0000000..6482021
--- /dev/null
+++ b/DumpTruck/FormDumpTruck.Designer.cs
@@ -0,0 +1,134 @@
+namespace DumpTruck
+{
+ 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();
+ Create = new Button();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ buttonRight = new Button();
+ buttonDown = 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(800, 450);
+ pictureBoxDumpTruck.TabIndex = 0;
+ pictureBoxDumpTruck.TabStop = false;
+ //
+ // Create
+ //
+ Create.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ Create.Location = new Point(12, 415);
+ Create.Name = "Create";
+ Create.Size = new Size(75, 23);
+ Create.TabIndex = 1;
+ Create.Text = "Создать";
+ Create.UseVisualStyleBackColor = true;
+ Create.Click += Create_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.left;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonLeft.Location = new Point(686, 408);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(30, 30);
+ 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.Zoom;
+ buttonUp.Location = new Point(722, 372);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(30, 30);
+ buttonUp.TabIndex = 3;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.right;
+ buttonRight.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonRight.Location = new Point(758, 408);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(30, 30);
+ buttonRight.TabIndex = 4;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.down;
+ buttonDown.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonDown.Location = new Point(722, 408);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(30, 30);
+ buttonDown.TabIndex = 5;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // FormDumpTruck
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(800, 450);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonLeft);
+ Controls.Add(Create);
+ Controls.Add(pictureBoxDumpTruck);
+ Name = "FormDumpTruck";
+ Text = "FormDumpTruck";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxDumpTruck).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxDumpTruck;
+ private Button Create;
+ private Button buttonLeft;
+ private Button buttonUp;
+ private Button buttonRight;
+ private Button buttonDown;
+ }
+}
\ No newline at end of file
diff --git a/DumpTruck/FormDumpTruck.cs b/DumpTruck/FormDumpTruck.cs
new file mode 100644
index 0000000..0ee28f0
--- /dev/null
+++ b/DumpTruck/FormDumpTruck.cs
@@ -0,0 +1,65 @@
+namespace DumpTruck
+{
+ public partial class FormDumpTruck : Form
+ {
+ public FormDumpTruck()
+ {
+ InitializeComponent();
+ }
+
+ private DrawingDumpTruck? _drawingDumpTruck;
+
+ private void Draw()
+ {
+ if (_drawingDumpTruck == null)
+ {
+ return;
+ }
+ Bitmap bmp = new(pictureBoxDumpTruck.Width,
+ pictureBoxDumpTruck.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawingDumpTruck.DrawTransport(gr);
+ pictureBoxDumpTruck.Image = bmp;
+ }
+
+
+ private void Create_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawingDumpTruck = new DrawingDumpTruck();
+ _drawingDumpTruck.Init(random.Next(100, 300), random.Next(1000, 3000),
+ 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)),
+ 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)),
+ pictureBoxDumpTruck.Width, pictureBoxDumpTruck.Height);
+ _drawingDumpTruck.SetPosition(random.Next(10, 100), random.Next(10, 100));
+ Draw();
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawingDumpTruck == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _drawingDumpTruck.MoveTransport(Direction.Up);
+ break;
+ case "buttonDown":
+ _drawingDumpTruck.MoveTransport(Direction.Down);
+ break;
+ case "buttonLeft":
+ _drawingDumpTruck.MoveTransport(Direction.Left);
+ break;
+ case "buttonRight":
+ _drawingDumpTruck.MoveTransport(Direction.Right);
+ break;
+ }
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/DumpTruck/FormDumpTruck.resx b/DumpTruck/FormDumpTruck.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/DumpTruck/FormDumpTruck.resx
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/DumpTruck/Program.cs b/DumpTruck/Program.cs
new file mode 100644
index 0000000..e0b9e16
--- /dev/null
+++ b/DumpTruck/Program.cs
@@ -0,0 +1,17 @@
+namespace DumpTruck
+{
+ 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/DumpTruck/Properties/Resources.Designer.cs b/DumpTruck/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..aac7e60
--- /dev/null
+++ b/DumpTruck/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace DumpTruck.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("DumpTruck.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/DumpTruck/DumpTruck/Form1.resx b/DumpTruck/Properties/Resources.resx
similarity index 84%
rename from DumpTruck/DumpTruck/Form1.resx
rename to DumpTruck/Properties/Resources.resx
index 1af7de1..53ec0b4 100644
--- a/DumpTruck/DumpTruck/Form1.resx
+++ b/DumpTruck/Properties/Resources.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left.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
+
+
+ ..\Resources\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/DumpTruck/Resources/down.png b/DumpTruck/Resources/down.png
new file mode 100644
index 0000000..2051733
Binary files /dev/null and b/DumpTruck/Resources/down.png differ
diff --git a/DumpTruck/Resources/left.png b/DumpTruck/Resources/left.png
new file mode 100644
index 0000000..85ded4a
Binary files /dev/null and b/DumpTruck/Resources/left.png differ
diff --git a/DumpTruck/Resources/right.png b/DumpTruck/Resources/right.png
new file mode 100644
index 0000000..6a0bc69
Binary files /dev/null and b/DumpTruck/Resources/right.png differ
diff --git a/DumpTruck/Resources/up.png b/DumpTruck/Resources/up.png
new file mode 100644
index 0000000..1ac6dc2
Binary files /dev/null and b/DumpTruck/Resources/up.png differ