diff --git a/ProjectStormtrooper/DirectionType.cs b/ProjectStormtrooper/DirectionType.cs
new file mode 100644
index 0000000..75dddcd
--- /dev/null
+++ b/ProjectStormtrooper/DirectionType.cs
@@ -0,0 +1,29 @@
+namespace ProjectStormtrooper;
+
+///
+/// Направление перемещения
+///
+public enum DirectionType
+{
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+
+ Down = 2,
+ ///
+ /// Влево
+ ///
+
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+
+ Right = 4
+
+
+}
diff --git a/ProjectStormtrooper/DrawingStormtrooper.cs b/ProjectStormtrooper/DrawingStormtrooper.cs
new file mode 100644
index 0000000..f61a5ca
--- /dev/null
+++ b/ProjectStormtrooper/DrawingStormtrooper.cs
@@ -0,0 +1,221 @@
+namespace ProjectStormtrooper;
+///
+/// Класс отвечающий за прорисовку и перемещение объекта-сущности
+///
+public class DrawingStormtrooper
+{
+ ///
+ /// Класс-сущность
+ ///
+ public EntityStormtrooper? EntityStormtrooper { get; private set; }
+ ///
+ /// Ширина окна
+ ///
+ private int? _pictureWidth;
+ ///
+ /// Высота окна
+ ///
+
+ private int? _pictureHeight;
+ ///
+ /// Левая координата начала прорисовки
+ ///
+
+ private int? _startPosX;
+ ///
+ /// Верхняя координата начала прорисовки
+ ///
+
+ private int? _startPosY;
+ ///
+ /// Ширина прорисовки
+ ///
+
+ private readonly int _drawningStormtrooperWidth = 140;
+ ///
+ /// Высота прорисовки
+ ///
+
+ private readonly int _drawningStormtooperHeight = 140;
+ ///
+ /// Инициализация свойств
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+
+ public void Init(int speed,double weight, Color bodyColor,Color additionalColor, bool rockets, bool bombs)
+ {
+ EntityStormtrooper = new EntityStormtrooper();
+ EntityStormtrooper.Init(speed, weight, bodyColor, additionalColor, rockets, bombs);
+ _pictureHeight = null;
+ _pictureWidth = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+ ///
+ /// Установка границ поля
+ ///
+ /// Ширина поля
+ /// Высота поля
+ /// true - граница задана, false - проверка не пройдена, нельзя разместить объект в этих размерах
+ public bool SetPictureSize(int width,int height)
+ {
+ if (width >= _drawningStormtrooperWidth || height >= _drawningStormtooperHeight)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if(_startPosX!=null && _startPosY != null)
+ {
+ SetPosition(_startPosX.Value, _startPosY.Value);
+ }
+ return true;
+
+ }
+ return false;
+ }
+
+ ///
+ /// Установка позиции
+ ///
+ /// Координата Х
+ /// Координата У
+ public void SetPosition(int x, int y)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+ // TODO если при установке объекта в эти координаты, он будет "выходить" за границы формы
+ // то надо изменить координаты, чтобы он оставался в этих границах
+
+
+ if (x < 0)
+ {
+ x = 0;
+ }
+ else if (x > _pictureWidth - _drawningStormtrooperWidth)
+ {
+ x = _pictureWidth.Value - _drawningStormtrooperWidth;
+ }
+ if (y < 0)
+ {
+ y = 0;
+ }
+ else if (y > _pictureHeight - _drawningStormtooperHeight)
+ {
+ y = _pictureHeight.Value - _drawningStormtooperHeight;
+ }
+
+ _startPosX = x;
+ _startPosY = y;
+ }
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// направление
+ /// true - перемещение выполнено, false - перемещение невозможно
+ public bool MoveTransport(DirectionType direction)
+ {
+ if (EntityStormtrooper == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return false;
+ }
+ switch (direction)
+ {
+ //влево
+ case DirectionType.Left:
+ if (_startPosX.Value - EntityStormtrooper.Step > 0)
+ {
+ _startPosX -= (int)EntityStormtrooper.Step;
+ }
+ return true;
+ //Вверх
+ case DirectionType.Up:
+ if (_startPosY.Value - EntityStormtrooper.Step > 0)
+ {
+ _startPosY -= (int)EntityStormtrooper.Step;
+ }
+ return true;
+
+ //Вправо
+ case DirectionType.Right:
+ if (_startPosX.Value + EntityStormtrooper.Step+_drawningStormtrooperWidth < _pictureWidth)
+ {
+ _startPosX += (int)EntityStormtrooper.Step;
+ }
+ return true;
+ //Вниз
+ case DirectionType.Down:
+ if (_startPosY.Value + EntityStormtrooper.Step + _drawningStormtooperHeight < _pictureHeight)
+ {
+ _startPosY += (int)EntityStormtrooper.Step;
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityStormtrooper == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return;
+ }
+
+ Pen pen = new(Color.Black);
+ Brush bodyColorBrush = new SolidBrush(EntityStormtrooper.BodyColor);
+ Brush additionalBrush = new SolidBrush(EntityStormtrooper.AdditionalColor);
+
+ //нос штурмовика
+
+ Point[] Nose = new Point[3];
+ Nose[0].X = _startPosX.Value + 20; Nose[0].Y = _startPosY.Value + 80;
+ Nose[1].X = _startPosX.Value + 20; Nose[1].Y = _startPosY.Value + 60;
+ Nose[2].X = _startPosX.Value; Nose[2].Y = _startPosY.Value + 70;
+ g.FillPolygon(bodyColorBrush, Nose);
+
+ //Тело штурмовика
+ g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 60, 120, 20);
+
+ //Крылья штурмовика
+
+ g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value + 60, _startPosX.Value + 60, _startPosY.Value);
+ g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value, _startPosX.Value + 70, _startPosY.Value);
+ g.DrawLine(pen, _startPosX.Value + 70, _startPosY.Value, _startPosX.Value + 80, _startPosY.Value + 60);
+
+ g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value + 80, _startPosX.Value + 60, _startPosY.Value+140);
+ g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value+140, _startPosX.Value + 70, _startPosY.Value+140);
+ g.DrawLine(pen, _startPosX.Value + 70, _startPosY.Value+140, _startPosX.Value + 80, _startPosY.Value + 80);
+
+ //Заднии крылья штурмовика
+ g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 60, _startPosX.Value + 120, _startPosY.Value + 50);
+ g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 50, _startPosX.Value + 140, _startPosY.Value + 30);
+ g.DrawLine(pen, _startPosX.Value + 140, _startPosY.Value + 30, _startPosX.Value + 140, _startPosY.Value + 110);
+ g.DrawLine(pen, _startPosX.Value + 140, _startPosY.Value + 110, _startPosX.Value + 120, _startPosY.Value + 90);
+ g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 90, _startPosX.Value + 120, _startPosY.Value + 80);
+ //Ракеты штурмовика
+ if (EntityStormtrooper.Rockets)
+ {
+ g.FillRectangle(additionalBrush, _startPosX.Value + 45, _startPosY.Value + 20, 15, 5);
+ g.FillRectangle(additionalBrush, _startPosX.Value + 45, _startPosY.Value + 110, 15, 5);
+
+ }
+ //Бомбы бомбардировщика
+ if (EntityStormtrooper.Bombs)
+ {
+ g.FillRectangle(additionalBrush, _startPosX.Value + 50, _startPosY.Value + 40, 10, 10);
+ g.FillRectangle(additionalBrush, _startPosX.Value + 50, _startPosY.Value + 90, 10, 10);
+ }
+ }
+
+
+}
diff --git a/ProjectStormtrooper/EntityStormtrooper.cs b/ProjectStormtrooper/EntityStormtrooper.cs
new file mode 100644
index 0000000..3cf8c67
--- /dev/null
+++ b/ProjectStormtrooper/EntityStormtrooper.cs
@@ -0,0 +1,64 @@
+namespace ProjectStormtrooper;
+
+///
+/// Класс-сущность "Штурмовик"
+///
+public class EntityStormtrooper
+{
+ ///
+ /// Скорость
+ ///
+ 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 Rockets { get; private set; }
+
+ ///
+ /// Признак (опция) наличия бомб
+ ///
+ public bool Bombs { get; private set; }
+
+ ///
+ /// Шаг перемещения штурмовика
+ ///
+ public double Step => Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса штурмовик
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия ракет
+ /// Признак наличия бомб
+
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool rockets, bool bombs)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ Rockets = rockets;
+ Bombs = bombs;
+
+ }
+}
+
diff --git a/ProjectStormtrooper/Form1.Designer.cs b/ProjectStormtrooper/Form1.Designer.cs
deleted file mode 100644
index dda9405..0000000
--- a/ProjectStormtrooper/Form1.Designer.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-namespace ProjectStormtrooper
-{
- 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()
- {
- SuspendLayout();
- //
- // Form1
- //
- AutoScaleDimensions = new SizeF(8F, 20F);
- AutoScaleMode = AutoScaleMode.Font;
- ClientSize = new Size(800, 450);
- Name = "Form1";
- Text = "Form1";
- Load += Form1_Load;
- ResumeLayout(false);
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/ProjectStormtrooper/Form1.cs b/ProjectStormtrooper/Form1.cs
deleted file mode 100644
index 80e723a..0000000
--- a/ProjectStormtrooper/Form1.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-namespace ProjectStormtrooper
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
-
- private void Form1_Load(object sender, EventArgs e)
- {
-
- }
- }
-}
\ No newline at end of file
diff --git a/ProjectStormtrooper/FormStormtrooper.Designer.cs b/ProjectStormtrooper/FormStormtrooper.Designer.cs
new file mode 100644
index 0000000..7c404ee
--- /dev/null
+++ b/ProjectStormtrooper/FormStormtrooper.Designer.cs
@@ -0,0 +1,136 @@
+namespace ProjectStormtrooper
+{
+ partial class FormStormtrooper
+ {
+ ///
+ /// 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()
+ {
+ pictureBoxStormtrooper = new PictureBox();
+ buttonCreateStormtrooper = new Button();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ buttonDown = new Button();
+ buttonRight = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxStormtrooper).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxStormtrooper
+ //
+ pictureBoxStormtrooper.Dock = DockStyle.Fill;
+ pictureBoxStormtrooper.Location = new Point(0, 0);
+ pictureBoxStormtrooper.Name = "pictureBoxStormtrooper";
+ pictureBoxStormtrooper.Size = new Size(925, 597);
+ pictureBoxStormtrooper.TabIndex = 0;
+ pictureBoxStormtrooper.TabStop = false;
+
+ //
+ // buttonCreateStormtrooper
+ //
+ buttonCreateStormtrooper.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreateStormtrooper.Location = new Point(12, 562);
+ buttonCreateStormtrooper.Name = "buttonCreateStormtrooper";
+ buttonCreateStormtrooper.Size = new Size(75, 23);
+ buttonCreateStormtrooper.TabIndex = 1;
+ buttonCreateStormtrooper.Text = "Создать";
+ buttonCreateStormtrooper.UseVisualStyleBackColor = true;
+ buttonCreateStormtrooper.Click += ButtonCreateStormtrooper_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.arrow_to_Left;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonLeft.Location = new Point(797, 551);
+ 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.arrow_to_Up;
+ buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUp.Location = new Point(838, 509);
+ 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.arrow_to_Down;
+ buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDown.Location = new Point(838, 550);
+ 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.arrow_to_right;
+ buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonRight.Location = new Point(879, 551);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(35, 35);
+ buttonRight.TabIndex = 5;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // FormStormtrooper
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(925, 597);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonCreateStormtrooper);
+ Controls.Add(pictureBoxStormtrooper);
+ Name = "FormStormtrooper";
+ Text = "Штурмовик";
+
+ ((System.ComponentModel.ISupportInitialize)pictureBoxStormtrooper).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxStormtrooper;
+ private Button buttonCreateStormtrooper;
+ private Button buttonLeft;
+ private Button buttonUp;
+ private Button buttonDown;
+ private Button buttonRight;
+ }
+}
\ No newline at end of file
diff --git a/ProjectStormtrooper/FormStormtrooper.cs b/ProjectStormtrooper/FormStormtrooper.cs
new file mode 100644
index 0000000..906dbc5
--- /dev/null
+++ b/ProjectStormtrooper/FormStormtrooper.cs
@@ -0,0 +1,88 @@
+namespace ProjectStormtrooper;
+///
+/// Форма работы с объектом "Штурмовик"
+///
+public partial class FormStormtrooper : Form
+{///
+/// Поле-объект для прорисовки объекта
+///
+ private DrawingStormtrooper? _drawningStormtrooper;
+ ///
+ /// Конструктор формы
+ ///
+ public FormStormtrooper()
+ {
+ InitializeComponent();
+ }
+
+ ///
+ /// Метод прорисовки штурмовика
+ ///
+
+ private void Draw()
+ {
+ if (_drawningStormtrooper == null)
+ {
+ return;
+ }
+
+ Bitmap bmp = new(pictureBoxStormtrooper.Width, pictureBoxStormtrooper.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningStormtrooper.DrawTransport(gr);
+ pictureBoxStormtrooper.Image = bmp;
+ }
+ ///
+ /// Обработка нажатия кнопки "Создать"
+ ///
+ ///
+ ///
+ private void ButtonCreateStormtrooper_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningStormtrooper = new DrawingStormtrooper();
+ _drawningStormtrooper.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)));
+ _drawningStormtrooper.SetPictureSize(pictureBoxStormtrooper.Width, pictureBoxStormtrooper.Height);
+ _drawningStormtrooper.SetPosition(random.Next(10, 100), random.Next(10, 100));
+
+ Draw();
+ }
+ ///
+ /// Перемещение объкта по форме(нажатие кнопок навигации)
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningStormtrooper == null)
+ {
+ return;
+ }
+
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ bool result = false;
+ switch (name)
+ {
+ case "buttonUp":
+ result = _drawningStormtrooper.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ result = _drawningStormtrooper.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ result = _drawningStormtrooper.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ result = _drawningStormtrooper.MoveTransport(DirectionType.Right);
+ break;
+ }
+
+ if (result)
+ {
+ Draw();
+ }
+
+ }
+}
diff --git a/ProjectStormtrooper/Form1.resx b/ProjectStormtrooper/FormStormtrooper.resx
similarity index 100%
rename from ProjectStormtrooper/Form1.resx
rename to ProjectStormtrooper/FormStormtrooper.resx
diff --git a/ProjectStormtrooper/Program.cs b/ProjectStormtrooper/Program.cs
index 763f0aa..3db6e41 100644
--- a/ProjectStormtrooper/Program.cs
+++ b/ProjectStormtrooper/Program.cs
@@ -11,7 +11,7 @@ namespace ProjectStormtrooper
// 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 FormStormtrooper());
}
}
}
\ No newline at end of file
diff --git a/ProjectStormtrooper/ProjectStormtrooper.csproj b/ProjectStormtrooper/ProjectStormtrooper.csproj
index e1a0735..244387d 100644
--- a/ProjectStormtrooper/ProjectStormtrooper.csproj
+++ b/ProjectStormtrooper/ProjectStormtrooper.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/ProjectStormtrooper/Properties/Resources.Designer.cs b/ProjectStormtrooper/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..f1e7f67
--- /dev/null
+++ b/ProjectStormtrooper/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectStormtrooper.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("ProjectStormtrooper.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 arrow_to_Down {
+ get {
+ object obj = ResourceManager.GetObject("arrow-to-Down", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_to_Left {
+ get {
+ object obj = ResourceManager.GetObject("arrow-to-Left", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_to_right {
+ get {
+ object obj = ResourceManager.GetObject("arrow-to-right", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_to_Up {
+ get {
+ object obj = ResourceManager.GetObject("arrow-to-Up", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ProjectStormtrooper/Properties/Resources.resx b/ProjectStormtrooper/Properties/Resources.resx
new file mode 100644
index 0000000..ea850ce
--- /dev/null
+++ b/ProjectStormtrooper/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\arrow-to-Down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrow-to-Left.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrow-to-right.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrow-to-Up.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectStormtrooper/Resources/arrow-to-Down.jpg b/ProjectStormtrooper/Resources/arrow-to-Down.jpg
new file mode 100644
index 0000000..1af961a
Binary files /dev/null and b/ProjectStormtrooper/Resources/arrow-to-Down.jpg differ
diff --git a/ProjectStormtrooper/Resources/arrow-to-Left.jpg b/ProjectStormtrooper/Resources/arrow-to-Left.jpg
new file mode 100644
index 0000000..4ce79af
Binary files /dev/null and b/ProjectStormtrooper/Resources/arrow-to-Left.jpg differ
diff --git a/ProjectStormtrooper/Resources/arrow-to-Up.jpg b/ProjectStormtrooper/Resources/arrow-to-Up.jpg
new file mode 100644
index 0000000..4c69df2
Binary files /dev/null and b/ProjectStormtrooper/Resources/arrow-to-Up.jpg differ
diff --git a/ProjectStormtrooper/Resources/arrow-to-right.jpg b/ProjectStormtrooper/Resources/arrow-to-right.jpg
new file mode 100644
index 0000000..7b355cd
Binary files /dev/null and b/ProjectStormtrooper/Resources/arrow-to-right.jpg differ