diff --git a/AntiAircraftGun/AntiAircraftGun.csproj b/AntiAircraftGun/AntiAircraftGun.csproj
index b57c89e..13ee123 100644
--- a/AntiAircraftGun/AntiAircraftGun.csproj
+++ b/AntiAircraftGun/AntiAircraftGun.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/AntiAircraftGun/DirectionAntiAircraftGun.cs b/AntiAircraftGun/DirectionAntiAircraftGun.cs
new file mode 100644
index 0000000..05de63e
--- /dev/null
+++ b/AntiAircraftGun/DirectionAntiAircraftGun.cs
@@ -0,0 +1,24 @@
+
+namespace AntiAircraftGun;
+///
+/// Направление перемещения
+///
+public enum DirectionType
+{
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+ ///
+ /// Влево
+ ///
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+ Right = 4,
+}
diff --git a/AntiAircraftGun/DrawningAntiAircraftGun.cs b/AntiAircraftGun/DrawningAntiAircraftGun.cs
new file mode 100644
index 0000000..0aee298
--- /dev/null
+++ b/AntiAircraftGun/DrawningAntiAircraftGun.cs
@@ -0,0 +1,242 @@
+namespace AntiAircraftGun;
+///
+/// Класс отвечающий за прорисовку и перемещение объекта - сущности
+///
+public class DrawningAntiAircraftGun
+{
+ ///
+ /// Класс - сущность
+ ///
+ public EntityAntiAircraftGun? EntityAntiAircraftGun { get; set; }
+ ///
+ /// Ширина окна
+ ///
+ private int? _pictureWidth;
+ ///
+ /// Высота окна
+ ///
+ private int? _pictureHeight;
+ ///
+ /// Левая координата прорисовки зенитной установки
+ ///
+ private int? _startPosX;
+ ///
+ /// Верхняя координата прорисовки зенитной установки
+ ///
+ private int? _startPosY;
+ ///
+ /// Ширина прорисовки зенитной установки
+ ///
+ private readonly int _drawningGunWidth = 120;
+ ///
+ /// Высота прорисовки зенитной установки
+ ///
+ private readonly int _drawningGunHeight = 95;
+ ///
+ /// Инициализация полей объекта-класса зенитной установки
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Наличие башни
+ /// Наличие радара
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool tower, bool radar)
+ {
+ EntityAntiAircraftGun = new EntityAntiAircraftGun();
+ EntityAntiAircraftGun.Init(speed, weight, bodyColor, additionalColor, tower, radar);
+ _pictureWidth = null;
+ _pictureHeight = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+ ///
+ /// Установка границ поля
+ ///
+ ///
+ ///
+ ///
+ public bool SetPictureSize(int width, int height)
+ {
+
+ if (width < _drawningGunWidth || height < _drawningGunHeight) { return false; };
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_startPosX != null || _startPosY != null)
+ {
+ if (_startPosX + _drawningGunWidth > _pictureWidth)
+ {
+ _startPosX = -_drawningGunWidth + _pictureWidth;
+ }
+ else if (_startPosX < 0)
+ {
+ _startPosX = 0;
+ }
+ if (_startPosY + _drawningGunHeight > _pictureHeight)
+ {
+ _startPosY = -_drawningGunHeight + _pictureHeight;
+ }
+ else if (_startPosY < 0)
+ {
+ _startPosY = 0;
+ }
+ }
+ return true;
+ }
+ ///
+ /// Установка позиций
+ ///
+ ///
+ ///
+ public void SetPosition(int x, int y)
+ {
+
+
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+
+ if (x + _drawningGunWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth - _drawningGunWidth;
+ }
+ else if (x < 0)
+ {
+ _startPosX = 0;
+ }
+ else
+ {
+ _startPosX = x;
+ }
+
+ if (y + _drawningGunHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight - _drawningGunHeight;
+ }
+ else if (y < 0)
+ {
+ _startPosY = 0;
+ }
+ else
+ {
+ _startPosY = y;
+ }
+ }
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ ///
+ public bool MoveTransport(DirectionType direction)
+ {
+ if (EntityAntiAircraftGun == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return false;
+ }
+ switch (direction)
+ {
+ case DirectionType.Left:
+ if (_startPosX.Value - EntityAntiAircraftGun.Step > 0)
+ {
+ _startPosX -= (int)EntityAntiAircraftGun.Step;
+ }
+ return true;
+ case DirectionType.Right:
+ if (_startPosX.Value + _drawningGunWidth + EntityAntiAircraftGun.Step < _pictureWidth)
+ {
+ _startPosX += (int)EntityAntiAircraftGun.Step;
+ }
+ return true;
+ case DirectionType.Down:
+ if (_startPosY.Value + _drawningGunHeight + EntityAntiAircraftGun.Step < _pictureHeight)
+ {
+ _startPosY += (int)EntityAntiAircraftGun.Step;
+ }
+ return true;
+ case DirectionType.Up:
+ if (_startPosY - EntityAntiAircraftGun.Step > 0)
+ {
+ _startPosY -= (int)EntityAntiAircraftGun.Step;
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityAntiAircraftGun == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return;
+ }
+
+ Pen pen = new(Color.Black);
+ Brush additionalBrush = new SolidBrush(EntityAntiAircraftGun.AdditionalColor);
+
+ g.DrawEllipse(pen, _startPosX.Value + 10, _startPosY.Value + 75, 30, 30);
+ g.DrawEllipse(pen, _startPosX.Value + 100, _startPosY.Value + 75, 30, 30);
+ g.DrawRectangle(pen, _startPosX.Value + 25, _startPosY.Value + 75, 90, 30);
+
+ //границы ЦВЕТ
+ Brush brDarkSlateGray = new SolidBrush(EntityAntiAircraftGun.BodyColor);
+ g.FillRectangle(brDarkSlateGray, _startPosX.Value + 35, _startPosY.Value + 40, 35, 30);
+ g.FillEllipse(brDarkSlateGray, _startPosX.Value + 10, _startPosY.Value + 75, 30, 30);
+ g.FillEllipse(brDarkSlateGray, _startPosX.Value + 100, _startPosY.Value + 75, 30, 30);
+ g.FillRectangle(brDarkSlateGray, _startPosX.Value + 25, _startPosY.Value + 75, 90, 30);
+
+ // границы арт. установки
+ g.DrawRectangle(pen, _startPosX.Value + 35, _startPosY.Value + 40, 35, 30);
+ g.DrawRectangle(pen, _startPosX.Value + 10, _startPosY.Value + 65, 120, 13);
+
+ //нижние катки ЦВЕТ
+ Brush brDimGray = new SolidBrush(Color.SlateGray);
+ g.FillEllipse(brDimGray, _startPosX.Value + 40, _startPosY.Value + 90, 15, 15);
+ g.FillEllipse(brDimGray, _startPosX.Value + 55, _startPosY.Value + 90, 15, 15);
+ g.FillEllipse(brDimGray, _startPosX.Value + 70, _startPosY.Value + 90, 15, 15);
+ g.FillEllipse(brDimGray, _startPosX.Value + 85, _startPosY.Value + 90, 15, 15);
+
+ //нижние катки ОТРИСОВКА
+ g.DrawEllipse(pen, _startPosX.Value + 40, _startPosY.Value + 90, 15, 15);
+ g.DrawEllipse(pen, _startPosX.Value + 55, _startPosY.Value + 90, 15, 15);
+ g.DrawEllipse(pen, _startPosX.Value + 70, _startPosY.Value + 90, 15, 15);
+ g.DrawEllipse(pen, _startPosX.Value + 85, _startPosY.Value + 90, 15, 15);
+
+ //Большие катки ЦВЕТ
+ Brush brSlateGray = new SolidBrush(Color.SlateGray);
+ g.FillEllipse(brSlateGray, _startPosX.Value + 13, _startPosY.Value + 78, 24, 24);
+ g.FillEllipse(brSlateGray, _startPosX.Value + 103, _startPosY.Value + 78, 24, 24);
+
+ //Большие катки ОТРИСОВКА
+ g.DrawEllipse(pen, _startPosX.Value + 13, _startPosY.Value + 78, 24, 24);
+ g.DrawEllipse(pen, _startPosX.Value + 103, _startPosY.Value + 78, 24, 24);
+
+ g.FillRectangle(brDarkSlateGray, _startPosX.Value + 10, _startPosY.Value + 65, 120, 13);
+
+ if (EntityAntiAircraftGun.Tower)
+ {
+ g.FillRectangle(additionalBrush, _startPosX.Value + 35, _startPosY.Value + 50, 35, 15);
+ g.DrawRectangle(pen, _startPosX.Value + 35, _startPosY.Value + 50, 35, 15);
+ g.DrawLine(pen, _startPosX.Value + 45, _startPosY.Value + 50, _startPosX.Value + 90, _startPosY.Value + 20);
+ g.DrawLine(pen, _startPosX.Value + 60, _startPosY.Value + 50, _startPosX.Value + 95, _startPosY.Value + 27);
+ g.DrawLine(pen, _startPosX.Value + 45, _startPosY.Value + 50, _startPosX.Value + 60, _startPosY.Value + 50);
+ g.DrawLine(pen, _startPosX.Value + 90, _startPosY.Value + 20, _startPosX.Value + 95, _startPosY.Value + 27);
+ g.DrawLine(pen, _startPosX.Value + 90, _startPosY.Value + 20, _startPosX.Value + 100, _startPosY.Value + 20);
+ g.DrawLine(pen, _startPosX.Value + 100, _startPosY.Value + 20, _startPosX.Value + 95, _startPosY.Value + 27);
+
+ }
+
+ if (EntityAntiAircraftGun.Radar)
+ {
+ g.DrawLine(pen, _startPosX.Value + 20, _startPosY.Value + 65, _startPosX.Value + 20, _startPosY.Value + 40);
+ g.FillRectangle(additionalBrush, _startPosX.Value + 10, _startPosY.Value + 20, 20, 20);
+ g.DrawRectangle(pen, _startPosX.Value + 10, _startPosY.Value + 20, 20, 20);
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/AntiAircraftGun/EntityAntiAircraftGun.cs b/AntiAircraftGun/EntityAntiAircraftGun.cs
new file mode 100644
index 0000000..9ec7e34
--- /dev/null
+++ b/AntiAircraftGun/EntityAntiAircraftGun.cs
@@ -0,0 +1,52 @@
+namespace AntiAircraftGun;
+///
+/// Класс-сущность Зенитная установка
+///
+public class EntityAntiAircraftGun
+{ ///
+ /// Скорость
+ ///
+ 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 Tower { get; private set; }
+ ///
+ /// Наличие радара
+ ///
+ public bool Radar { get; private set; }
+ ///
+ /// Шаг перемещения гидросамолета
+ ///
+ public double Step => Speed * 100 / Weight;
+ ///
+ /// Инициализация полей объекта-класса гидросамолета
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Наличие башни
+ /// Наличие радара
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool tower, bool radar)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ Tower = tower;
+ Radar = radar;
+ }
+}
diff --git a/AntiAircraftGun/Form1.Designer.cs b/AntiAircraftGun/Form1.Designer.cs
deleted file mode 100644
index 4350061..0000000
--- a/AntiAircraftGun/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AntiAircraftGun
-{
- 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/AntiAircraftGun/Form1.cs b/AntiAircraftGun/Form1.cs
deleted file mode 100644
index 90486ab..0000000
--- a/AntiAircraftGun/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace AntiAircraftGun
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/AntiAircraftGun/FormAntiAircraftGun.Designer.cs b/AntiAircraftGun/FormAntiAircraftGun.Designer.cs
new file mode 100644
index 0000000..7d69786
--- /dev/null
+++ b/AntiAircraftGun/FormAntiAircraftGun.Designer.cs
@@ -0,0 +1,134 @@
+namespace AntiAircraftGun
+{
+ partial class FormAntiAircraftGun
+ {
+ ///
+ /// 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()
+ {
+ pictureBoxAntiAircraftGun = new PictureBox();
+ buttonCreate = new Button();
+ buttonLeft = new Button();
+ buttonDown = new Button();
+ buttonRight = new Button();
+ buttonUp = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxAntiAircraftGun).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxAntiAircraftGun
+ //
+ pictureBoxAntiAircraftGun.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ pictureBoxAntiAircraftGun.Location = new Point(0, 0);
+ pictureBoxAntiAircraftGun.Name = "pictureBoxAntiAircraftGun";
+ pictureBoxAntiAircraftGun.Size = new Size(800, 450);
+ pictureBoxAntiAircraftGun.TabIndex = 0;
+ pictureBoxAntiAircraftGun.TabStop = false;
+ //
+ // buttonCreate
+ //
+ buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreate.Location = new Point(12, 406);
+ buttonCreate.Name = "buttonCreate";
+ buttonCreate.Size = new Size(95, 32);
+ buttonCreate.TabIndex = 1;
+ buttonCreate.Text = "Создать";
+ buttonCreate.UseVisualStyleBackColor = true;
+ buttonCreate.Click += ButtonCreate_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.left;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonLeft.Location = new Point(636, 403);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(35, 35);
+ buttonLeft.TabIndex = 2;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.down;
+ buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDown.Location = new Point(677, 403);
+ 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.right;
+ buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonRight.Location = new Point(718, 403);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(35, 35);
+ buttonRight.TabIndex = 4;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonUp.BackgroundImage = Properties.Resources.up;
+ buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUp.Location = new Point(677, 362);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(35, 35);
+ buttonUp.TabIndex = 5;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // FormAntiAircraftGun
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(800, 450);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonCreate);
+ Controls.Add(pictureBoxAntiAircraftGun);
+ Name = "FormAntiAircraftGun";
+ Text = "Зенитная установка";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxAntiAircraftGun).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxAntiAircraftGun;
+ private Button buttonCreate;
+ private Button buttonLeft;
+ private Button buttonDown;
+ private Button buttonRight;
+ private Button buttonUp;
+ }
+}
\ No newline at end of file
diff --git a/AntiAircraftGun/FormAntiAircraftGun.cs b/AntiAircraftGun/FormAntiAircraftGun.cs
new file mode 100644
index 0000000..d4eeab7
--- /dev/null
+++ b/AntiAircraftGun/FormAntiAircraftGun.cs
@@ -0,0 +1,80 @@
+namespace AntiAircraftGun;
+
+public partial class FormAntiAircraftGun : Form
+{
+ ///
+ /// Поле объект для прорисовки объекта
+ ///
+ private DrawningAntiAircraftGun? _drawningAntiAircraftGun;
+ ///
+ /// конструктор формы
+ ///
+ public FormAntiAircraftGun()
+ {
+ InitializeComponent();
+ }
+ ///
+ /// Метод прорисовки транспорта
+ ///
+ private void Draw()
+ {
+ if (_drawningAntiAircraftGun == null)
+ {
+ return;
+ }
+ Bitmap bmp = new(pictureBoxAntiAircraftGun.Width, pictureBoxAntiAircraftGun.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningAntiAircraftGun.DrawTransport(gr);
+ pictureBoxAntiAircraftGun.Image = bmp;
+ }
+ ///
+ /// Обработка кнопик Создать
+ ///
+ ///
+ ///
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningAntiAircraftGun = new DrawningAntiAircraftGun();
+ _drawningAntiAircraftGun.Init(random.Next(100, 300), random.Next(1000, 3000), Color.FromArgb(random.Next(0, 255),
+ random.Next(0, 255), random.Next(0, 255)), Color.FromArgb(random.Next(0, 255), random.Next(0, 255), random.Next(0, 255)),
+ Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));
+ _drawningAntiAircraftGun.SetPictureSize(pictureBoxAntiAircraftGun.Width, pictureBoxAntiAircraftGun.Height);
+ _drawningAntiAircraftGun.SetPosition(random.Next(10, 100), random.Next(10, 100));
+
+ Draw();
+ }
+ ///
+ /// Перемещение объекта по форме
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningAntiAircraftGun == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ bool result = false;
+ switch (name)
+ {
+ case "buttonUp":
+ result = _drawningAntiAircraftGun.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ result = _drawningAntiAircraftGun.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonRight":
+ result = _drawningAntiAircraftGun.MoveTransport(DirectionType.Right);
+ break;
+ case "buttonLeft":
+ result = _drawningAntiAircraftGun.MoveTransport(DirectionType.Left);
+ break;
+ }
+ if (result)
+ {
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/AntiAircraftGun/Form1.resx b/AntiAircraftGun/FormAntiAircraftGun.resx
similarity index 93%
rename from AntiAircraftGun/Form1.resx
rename to AntiAircraftGun/FormAntiAircraftGun.resx
index 1af7de1..af32865 100644
--- a/AntiAircraftGun/Form1.resx
+++ b/AntiAircraftGun/FormAntiAircraftGun.resx
@@ -1,17 +1,17 @@
-
diff --git a/AntiAircraftGun/Program.cs b/AntiAircraftGun/Program.cs
index a07f785..5abc523 100644
--- a/AntiAircraftGun/Program.cs
+++ b/AntiAircraftGun/Program.cs
@@ -11,7 +11,7 @@ namespace AntiAircraftGun
// 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 FormAntiAircraftGun());
}
}
}
\ No newline at end of file
diff --git a/AntiAircraftGun/Properties/Resources.Designer.cs b/AntiAircraftGun/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..799e6ee
--- /dev/null
+++ b/AntiAircraftGun/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace AntiAircraftGun.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("AntiAircraftGun.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/AntiAircraftGun/Properties/Resources.resx b/AntiAircraftGun/Properties/Resources.resx
new file mode 100644
index 0000000..79499f3
--- /dev/null
+++ b/AntiAircraftGun/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\up.jpg;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\left.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/AntiAircraftGun/Resources/down.jpg b/AntiAircraftGun/Resources/down.jpg
new file mode 100644
index 0000000..86a386e
Binary files /dev/null and b/AntiAircraftGun/Resources/down.jpg differ
diff --git a/AntiAircraftGun/Resources/left.jpg b/AntiAircraftGun/Resources/left.jpg
new file mode 100644
index 0000000..d4c8925
Binary files /dev/null and b/AntiAircraftGun/Resources/left.jpg differ
diff --git a/AntiAircraftGun/Resources/right.png b/AntiAircraftGun/Resources/right.png
new file mode 100644
index 0000000..61255f3
Binary files /dev/null and b/AntiAircraftGun/Resources/right.png differ
diff --git a/AntiAircraftGun/Resources/up.jpg b/AntiAircraftGun/Resources/up.jpg
new file mode 100644
index 0000000..05ffe81
Binary files /dev/null and b/AntiAircraftGun/Resources/up.jpg differ