diff --git a/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs b/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs
new file mode 100644
index 0000000..a3eb262
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs
@@ -0,0 +1,35 @@
+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
+
+
+}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTruck.cs b/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTruck.cs
new file mode 100644
index 0000000..b955b72
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTruck.cs
@@ -0,0 +1,237 @@
+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 = 130;
+
+ ///
+ /// Высота прорисовки самосвала
+ ///
+ private readonly int _drawningDumpTruckHeight = 90;
+
+
+
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия кузова
+ /// Признак наличия тента
+
+
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bodywork, bool awning)
+ {
+ EntityDumpTruck = new EntityDumpTruck();
+ EntityDumpTruck.Init(speed, weight, bodyColor, additionalColor, bodywork, awning);
+ _pictureWidth = null;
+ _pictureHeight = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+
+
+
+
+ ///
+ /// Установка границ поля
+ ///
+ /// Ширина поля
+ /// Высота поля
+ /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах
+ public bool SetPictureSize(int width, int height)
+ {
+ // TODO проверка, что объект "влезает" в размеры поля
+ // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена
+ if (_drawningDumpTruckWidth > width || _drawningDumpTruckHeight > height)
+ {
+ return false;
+ }
+
+ _pictureWidth = width;
+ _pictureHeight = height;
+
+ if (_startPosX.HasValue && _startPosX.Value + _drawningDumpTruckWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth - _drawningDumpTruckWidth;
+ }
+
+ if (_startPosY.HasValue && _startPosY.Value + _drawningDumpTruckHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight - _drawningDumpTruckHeight;
+ }
+
+ return true;
+ }
+
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+ // TODO если при установке объекта в эти координаты, он будет "выходить" за границы формы
+ // то надо изменить координаты, чтобы он оставался в этих границах
+
+ if (x + _drawningDumpTruckWidth > _pictureWidth)
+ {
+ x = (int)_pictureWidth - _drawningDumpTruckWidth;
+ }
+ if (y + _drawningDumpTruckHeight > _pictureHeight)
+ {
+ y = (int)_pictureHeight - _drawningDumpTruckHeight;
+ }
+ if (x < 0)
+ {
+ x = 0;
+ }
+ if (y < 0)
+ {
+ y = 0;
+ }
+
+ _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 + EntityDumpTruck.Step + _drawningDumpTruckWidth < _pictureWidth)
+ {
+ _startPosX += (int)EntityDumpTruck.Step;
+ }
+ return true;
+
+ //вниз
+ case DirectionType.Down:
+ if (_startPosY.Value + EntityDumpTruck.Step + _drawningDumpTruckHeight < _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 body = new SolidBrush(EntityDumpTruck.BodyColor);
+ g.FillRectangle(body, _startPosX.Value + 100, _startPosY.Value, 30, 35);
+ g.FillRectangle(body, _startPosX.Value, _startPosY.Value + 40, 130, 20);
+
+ //Отрисовка колёс
+ Brush wheels = new SolidBrush(Color.Gray);
+ g.FillEllipse(wheels, _startPosX.Value, _startPosY.Value + 60, 30, 30);
+ g.FillEllipse(wheels, _startPosX.Value + 30, _startPosY.Value + 60, 30, 30);
+ g.FillEllipse(wheels, _startPosX.Value + 100, _startPosY.Value + 60, 30, 30);
+
+ //Отрисовка границ
+ Brush border = new SolidBrush(Color.Black);
+ g.DrawRectangle(pen, _startPosX.Value + 100, _startPosY.Value, 30, 35);
+ g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 40, 130, 20);
+ g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 60, 30, 30);
+ g.DrawEllipse(pen, _startPosX.Value + 30, _startPosY.Value + 60, 30, 30);
+ g.DrawEllipse(pen, _startPosX.Value + 100, _startPosY.Value + 60, 30, 30);
+
+ //Отрисовка кузова
+ if (EntityDumpTruck.Bodywork)
+ {
+ g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value, 90, 35);
+ }
+
+ //Отрисовка тента
+ if (EntityDumpTruck.Bodywork & EntityDumpTruck.Awning)
+ {
+ g.FillRectangle(border, _startPosX.Value, _startPosY.Value, 95, 10);
+ g.FillRectangle(border, _startPosX.Value, _startPosY.Value, 95, 3);
+ g.FillRectangle(border, _startPosX.Value + 30, _startPosY.Value, 3, 40);
+ g.FillRectangle(border, _startPosX.Value + 70, _startPosY.Value, 3, 40);
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs b/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs
new file mode 100644
index 0000000..edf756f
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs
@@ -0,0 +1,70 @@
+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 Bodywork { get; private set; }
+
+ ///
+ /// Признак (опция) наличия тента
+ ///
+ public bool Awning { get; private set; }
+
+ ///
+ /// Шаг перемещения самосвала
+ ///
+ public double Step => Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса самосвала
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия кузова
+ /// Признак наличия тента
+
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bodywork, bool awning)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ Bodywork = bodywork;
+ Awning = awning;
+ }
+
+
+}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Form1.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/Form1.Designer.cs
deleted file mode 100644
index d4f3db3..0000000
--- a/ProjectDumpTruck/ProjectDumpTruck/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace ProjectDumpTruck
-{
- 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
- }
-}
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Form1.cs b/ProjectDumpTruck/ProjectDumpTruck/Form1.cs
deleted file mode 100644
index 0c5b5ab..0000000
--- a/ProjectDumpTruck/ProjectDumpTruck/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace ProjectDumpTruck
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.Designer.cs
new file mode 100644
index 0000000..f0f09de
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.Designer.cs
@@ -0,0 +1,134 @@
+namespace ProjectDumpTruck
+{
+ partial class FormTransport
+ {
+ ///
+ /// 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();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ buttonDown = new Button();
+ buttonRight = new Button();
+ buttonCreateDumpTruck = 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(1017, 533);
+ pictureBoxDumpTruck.TabIndex = 0;
+ pictureBoxDumpTruck.TabStop = false;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.ArrowLeft;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonLeft.Location = new Point(888, 486);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(35, 35);
+ buttonLeft.TabIndex = 1;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonUp.BackgroundImage = Properties.Resources.ArrowUp;
+ buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUp.Location = new Point(929, 445);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(35, 35);
+ buttonUp.TabIndex = 2;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.ArrowDown;
+ buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDown.Location = new Point(929, 486);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(35, 35);
+ buttonDown.TabIndex = 3;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.ArrowRight;
+ buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonRight.Location = new Point(970, 486);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(35, 35);
+ buttonRight.TabIndex = 4;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonCreateDumpTruck
+ //
+ buttonCreateDumpTruck.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreateDumpTruck.Location = new Point(12, 498);
+ buttonCreateDumpTruck.Name = "buttonCreateDumpTruck";
+ buttonCreateDumpTruck.Size = new Size(75, 23);
+ buttonCreateDumpTruck.TabIndex = 5;
+ buttonCreateDumpTruck.Text = "Создать";
+ buttonCreateDumpTruck.UseVisualStyleBackColor = true;
+ buttonCreateDumpTruck.Click += ButtonCreateDumpTruck_Click;
+ //
+ // FormTransport
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(1017, 533);
+ Controls.Add(buttonCreateDumpTruck);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonLeft);
+ Controls.Add(pictureBoxDumpTruck);
+ Name = "FormTransport";
+ Text = "FormTransport";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxDumpTruck).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxDumpTruck;
+ private Button buttonLeft;
+ private Button buttonUp;
+ private Button buttonDown;
+ private Button buttonRight;
+ private Button buttonCreateDumpTruck;
+ }
+}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.cs b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.cs
new file mode 100644
index 0000000..e196619
--- /dev/null
+++ b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.cs
@@ -0,0 +1,104 @@
+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 FormTransport : Form
+ {
+ ///
+ /// Поле-объект для прорисовки объекта
+ ///
+ private DrawningDumpTruck? _drawningDumpTruck;
+
+ ///
+ /// Конструктор формы
+ ///
+ public FormTransport()
+ {
+ 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/Form1.resx b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.resx
similarity index 93%
rename from ProjectDumpTruck/ProjectDumpTruck/Form1.resx
rename to ProjectDumpTruck/ProjectDumpTruck/FormTransport.resx
index 1af7de1..af32865 100644
--- a/ProjectDumpTruck/ProjectDumpTruck/Form1.resx
+++ b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.resx
@@ -1,17 +1,17 @@
-
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Program.cs b/ProjectDumpTruck/ProjectDumpTruck/Program.cs
index 9977de0..b5d5161 100644
--- a/ProjectDumpTruck/ProjectDumpTruck/Program.cs
+++ b/ProjectDumpTruck/ProjectDumpTruck/Program.cs
@@ -11,7 +11,7 @@ namespace ProjectDumpTruck
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
- Application.Run(new Form1());
+ Application.Run(new FormTransport());
}
}
}
\ No newline at end of file
diff --git a/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj b/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj
index e1a0735..244387d 100644
--- a/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj
+++ b/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj
@@ -8,4 +8,19 @@
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..6206302
--- /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 ArrowDown {
+ get {
+ object obj = ResourceManager.GetObject("ArrowDown", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap ArrowLeft {
+ get {
+ object obj = ResourceManager.GetObject("ArrowLeft", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap ArrowRight {
+ get {
+ object obj = ResourceManager.GetObject("ArrowRight", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap ArrowUp {
+ get {
+ object obj = ResourceManager.GetObject("ArrowUp", 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..1ee1a77
--- /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\ArrowDown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\ArrowLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\ArrowRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\ArrowUp.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/ArrowDown.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowDown.png
new file mode 100644
index 0000000..73daef8
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowDown.png differ
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowLeft.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowLeft.png
new file mode 100644
index 0000000..b44ad6a
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowLeft.png differ
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowRight.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowRight.png
new file mode 100644
index 0000000..f041ad2
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowRight.png differ
diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowUp.png b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowUp.png
new file mode 100644
index 0000000..8b8be93
Binary files /dev/null and b/ProjectDumpTruck/ProjectDumpTruck/Resources/ArrowUp.png differ