diff --git a/ProjectAirFighter/ProjectAirFighter/DirectionType.cs b/ProjectAirFighter/ProjectAirFighter/DirectionType.cs
new file mode 100644
index 0000000..66b140b
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/DirectionType.cs
@@ -0,0 +1,27 @@
+namespace ProjectAirFighter;
+
+///
+/// Направление перемещения
+///
+public enum DirectionType
+{
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+
+ ///
+ /// Влево
+ ///
+ Left = 3,
+
+ ///
+ /// Вправо
+ ///
+ Right = 4
+}
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/DrawningAirFighter.cs b/ProjectAirFighter/ProjectAirFighter/DrawningAirFighter.cs
new file mode 100644
index 0000000..6e449e4
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/DrawningAirFighter.cs
@@ -0,0 +1,222 @@
+namespace ProjectAirFighter;
+
+///
+/// Класс, отвечающий за прорисовку и перемещение объекта-сущности
+///
+public class DrawningAirFighter
+{
+ ///
+ /// Класс-сущность
+ ///
+ public EntityAirFighter? EntityAirFighter { get; private set; }
+
+ ///
+ /// Ширина окна
+ ///
+ private int? _pictureWidth;
+
+ ///
+ /// Высота окна
+ ///
+ private int? _pictureHeight;
+
+ ///
+ /// Левая координата прорисовки истребителя
+ ///
+ private int? _startPosX;
+
+ ///
+ /// Верхняя кооридната прорисовки истребителя
+ ///
+ private int? _startPosY;
+
+ ///
+ /// Ширина прорисовки истребителя
+ ///
+ private readonly int _drawningPlaneWidth = 150;
+
+ ///
+ /// Высота прорисовки истребителя
+ ///
+ private readonly int _drawningPlaneHeight = 150;
+
+ ///
+ /// Инициализация полей объекта-класса истребителя
+ ///
+ /// Скорость
+ /// Вес истребителя
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия двигателей
+ /// Признак наличия дополнительных крыльев
+ /// Признак наличия ракет
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool engines, bool extraWings, bool rockets)
+ {
+ EntityAirFighter = new EntityAirFighter();
+ EntityAirFighter.Init(speed, weight, bodyColor, additionalColor, engines, extraWings, rockets);
+ _pictureWidth = null;
+ _pictureHeight = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+
+ ///
+ /// Установка границ поля
+ ///
+ /// Ширина поля
+ /// Высота поля
+ /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах
+ public bool SetPictureSize(int width, int height)
+ {
+ // проверка, что объект "влезает" в размеры поля
+ // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена
+ if (_drawningPlaneWidth > width || _drawningPlaneHeight > height) return false;
+ _pictureWidth = width;
+ _pictureHeight = height;
+ return true;
+ }
+
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+
+ // если при установке объекта в эти координаты, он будет "выходить" за границы формы
+ // надо изменить координаты, чтобы он оставался в этих границах
+ if (x + _drawningPlaneWidth > _pictureWidth.Value || x < 0)
+ {
+ Random random = new();
+ _startPosX = random.Next(0, _pictureWidth.Value - _drawningPlaneWidth);
+ }
+ else
+ {
+ _startPosX = x;
+ }
+
+ if (y + _drawningPlaneHeight > _pictureHeight.Value || y < 0)
+ {
+ Random random = new();
+ _startPosY = random.Next(0, _pictureHeight.Value - _drawningPlaneHeight);
+ }
+ else
+ {
+ _startPosY = y;
+ }
+ }
+
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ /// true - перемещене выполнено, false - перемещение невозможно
+ public bool MoveTransport(DirectionType direction)
+ {
+ if (EntityAirFighter == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return false;
+ }
+
+ switch (direction)
+ {
+ //влево
+ case DirectionType.Left:
+ if (_startPosX.Value - EntityAirFighter.Step > 0)
+ {
+ _startPosX -= (int)EntityAirFighter.Step;
+ }
+ return true;
+ //вверх
+ case DirectionType.Up:
+ if (_startPosY.Value - EntityAirFighter.Step > 0)
+ {
+ _startPosY -= (int)EntityAirFighter.Step;
+ }
+ return true;
+ // вправо
+ case DirectionType.Right:
+ if (_startPosX.Value + EntityAirFighter.Step + _drawningPlaneWidth < _pictureWidth)
+ {
+ _startPosX += (int)EntityAirFighter.Step;
+ }
+ return true;
+ //вниз
+ case DirectionType.Down:
+ if (_startPosY.Value + EntityAirFighter.Step + _drawningPlaneHeight < _pictureHeight)
+ {
+ _startPosY += (int)EntityAirFighter.Step;
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityAirFighter == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return;
+ }
+
+ Pen pen = new(Color.Black);
+ Brush brBlack = new SolidBrush(Color.Black);
+ Point point1 = new Point(_startPosX.Value, _startPosY.Value + 75);
+ Point point2 = new Point(_startPosX.Value + 20, _startPosY.Value + 70);
+ Point point3 = new Point(_startPosX.Value + 20, _startPosY.Value + 80);
+ Point[] triangle = {point1, point2, point3};
+ g.FillPolygon(brBlack, triangle);
+ Pen br = new(EntityAirFighter.BodyColor);
+ Brush hd = new SolidBrush(EntityAirFighter.BodyColor);
+ g.FillRectangle(hd, _startPosX.Value + 20, _startPosY.Value + 70, 130, 10);
+ g.DrawLine(br, _startPosX.Value + 40, _startPosY.Value + 70, _startPosX.Value + 40, _startPosY.Value);
+ g.DrawLine(br, _startPosX.Value + 40, _startPosY.Value, _startPosX.Value + 50, _startPosY.Value);
+ g.DrawLine(br, _startPosX.Value + 50, _startPosY.Value, _startPosX.Value + 55, _startPosY.Value + 70);
+ g.DrawLine(br, _startPosX.Value + 40, _startPosY.Value + 80, _startPosX.Value + 40, _startPosY.Value + 150);
+ g.DrawLine(br, _startPosX.Value + 40, _startPosY.Value + 150, _startPosX.Value + 50, _startPosY.Value + 150);
+ g.DrawLine(br, _startPosX.Value + 50, _startPosY.Value + 150, _startPosX.Value + 55, _startPosY.Value + 80);
+ g.DrawLine(br, _startPosX.Value + 150, _startPosY.Value + 70, _startPosX.Value + 150, _startPosY.Value + 55);
+ g.DrawLine(br, _startPosX.Value + 150, _startPosY.Value + 55, _startPosX.Value + 135, _startPosY.Value + 65);
+ g.DrawLine(br, _startPosX.Value + 135, _startPosY.Value + 65, _startPosX.Value + 135, _startPosY.Value + 70);
+ g.DrawLine(br, _startPosX.Value + 150, _startPosY.Value + 80, _startPosX.Value + 150, _startPosY.Value + 95);
+ g.DrawLine(br, _startPosX.Value + 150, _startPosY.Value + 95, _startPosX.Value + 135, _startPosY.Value + 85);
+ g.DrawLine(br, _startPosX.Value + 135, _startPosY.Value + 85, _startPosX.Value + 135, _startPosY.Value + 80);
+
+ Pen additionalPen = new(EntityAirFighter.AdditionalColor);
+ Brush additionalBrush = new SolidBrush(EntityAirFighter.AdditionalColor);
+
+ if (EntityAirFighter.Engines)
+ {
+ g.FillEllipse(additionalBrush, _startPosX.Value + 35, _startPosY.Value + 30, 10, 10);
+ g.FillEllipse(additionalBrush, _startPosX.Value + 35, _startPosY.Value + 120, 10, 10);
+ }
+ if (EntityAirFighter.ExtraWings)
+ {
+ g.DrawLine(additionalPen, _startPosX.Value + 65, _startPosY.Value + 70, _startPosX.Value + 90, _startPosY.Value + 20);
+ g.DrawLine(additionalPen, _startPosX.Value + 90, _startPosY.Value + 20, _startPosX.Value + 110, _startPosY.Value + 20);
+ g.DrawLine(additionalPen, _startPosX.Value + 110, _startPosY.Value + 20, _startPosX.Value + 85, _startPosY.Value + 70);
+ g.DrawLine(additionalPen, _startPosX.Value + 65, _startPosY.Value + 80, _startPosX.Value + 90, _startPosY.Value + 130);
+ g.DrawLine(additionalPen, _startPosX.Value + 90, _startPosY.Value + 130, _startPosX.Value + 110, _startPosY.Value + 130);
+ g.DrawLine(additionalPen, _startPosX.Value + 110, _startPosY.Value + 130, _startPosX.Value + 85, _startPosY.Value + 80);
+ }
+ if (EntityAirFighter.Rockets)
+ {
+ g.FillRectangle(additionalBrush, _startPosX.Value + 32, _startPosY.Value + 4, 8, 6);
+ g.DrawLine(additionalPen, _startPosX.Value + 32, _startPosY.Value + 4, _startPosX.Value + 26, _startPosY.Value + 7);
+ g.DrawLine(additionalPen, _startPosX.Value + 26, _startPosY.Value + 7, _startPosX.Value + 32, _startPosY.Value + 10);
+ g.FillRectangle(additionalBrush, _startPosX.Value + 32, _startPosY.Value + 140, 8, 6);
+ g.DrawLine(additionalPen, _startPosX.Value + 32, _startPosY.Value + 146, _startPosX.Value + 26, _startPosY.Value + 143);
+ g.DrawLine(additionalPen, _startPosX.Value + 26, _startPosY.Value + 143, _startPosX.Value + 32, _startPosY.Value + 140);
+ }
+ }
+}
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/EntityAirFighter.cs b/ProjectAirFighter/ProjectAirFighter/EntityAirFighter.cs
new file mode 100644
index 0000000..d35ab17
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/EntityAirFighter.cs
@@ -0,0 +1,68 @@
+namespace ProjectAirFighter;
+
+///
+/// Класс-сущность "Истребитель"
+///
+public class EntityAirFighter
+{
+ ///
+ /// Скорость
+ ///
+ 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 Engines { get; private set; }
+
+ ///
+ /// Признак (опция) наличия дополнительных крыльев
+ ///
+ public bool ExtraWings { get; private set; }
+
+ ///
+ /// Признак (опция) наличия ракет
+ ///
+ public bool Rockets { get; private set; }
+
+ ///
+ /// Шаг перемещения истребителя
+ ///
+ public double Step => Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса истребителя
+ ///
+ /// Скорость
+ /// Вес истребителя
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия двигателей
+ /// Признак наличия дополнительных крыльев
+ /// Признак наличия ракет
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool engines, bool extraWings, bool rockets)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ Engines = engines;
+ ExtraWings = extraWings;
+ Rockets = rockets;
+ }
+}
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/Form1.Designer.cs b/ProjectAirFighter/ProjectAirFighter/Form1.Designer.cs
deleted file mode 100644
index dfdcb34..0000000
--- a/ProjectAirFighter/ProjectAirFighter/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace ProjectAirFighter
-{
- 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/ProjectAirFighter/ProjectAirFighter/Form1.cs b/ProjectAirFighter/ProjectAirFighter/Form1.cs
deleted file mode 100644
index 10853c8..0000000
--- a/ProjectAirFighter/ProjectAirFighter/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace ProjectAirFighter
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ProjectAirFighter/ProjectAirFighter/FormAirFighter.Designer.cs b/ProjectAirFighter/ProjectAirFighter/FormAirFighter.Designer.cs
new file mode 100644
index 0000000..a610be2
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/FormAirFighter.Designer.cs
@@ -0,0 +1,134 @@
+namespace ProjectAirFighter
+{
+ partial class FormAirFighter
+ {
+ ///
+ /// 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()
+ {
+ pictureBoxAirFighter = new PictureBox();
+ buttonCreateAirFighter = new Button();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ buttonRight = new Button();
+ buttonDown = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxAirFighter).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxAirFighter
+ //
+ pictureBoxAirFighter.Dock = DockStyle.Fill;
+ pictureBoxAirFighter.Location = new Point(0, 0);
+ pictureBoxAirFighter.Name = "pictureBoxAirFighter";
+ pictureBoxAirFighter.Size = new Size(800, 450);
+ pictureBoxAirFighter.TabIndex = 0;
+ pictureBoxAirFighter.TabStop = false;
+ //
+ // buttonCreateAirFighter
+ //
+ buttonCreateAirFighter.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreateAirFighter.Location = new Point(12, 415);
+ buttonCreateAirFighter.Name = "buttonCreateAirFighter";
+ buttonCreateAirFighter.Size = new Size(75, 23);
+ buttonCreateAirFighter.TabIndex = 1;
+ buttonCreateAirFighter.Text = "Создать";
+ buttonCreateAirFighter.UseVisualStyleBackColor = true;
+ buttonCreateAirFighter.Click += ButtonCreateAirFighter_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.arrowLeft;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonLeft.Location = new Point(671, 403);
+ 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.arrowUp;
+ buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUp.Location = new Point(712, 362);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(35, 35);
+ buttonUp.TabIndex = 3;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.arrowRight;
+ buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonRight.Location = new Point(753, 403);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(35, 35);
+ buttonRight.TabIndex = 4;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.arrowDown;
+ buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDown.Location = new Point(712, 403);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(35, 35);
+ buttonDown.TabIndex = 5;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // FormAirFighter
+ //
+ 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(buttonCreateAirFighter);
+ Controls.Add(pictureBoxAirFighter);
+ Name = "FormAirFighter";
+ Text = "Истребитель";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxAirFighter).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxAirFighter;
+ private Button buttonCreateAirFighter;
+ private Button buttonLeft;
+ private Button buttonUp;
+ private Button buttonRight;
+ private Button buttonDown;
+ }
+}
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/FormAirFighter.cs b/ProjectAirFighter/ProjectAirFighter/FormAirFighter.cs
new file mode 100644
index 0000000..e291708
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/FormAirFighter.cs
@@ -0,0 +1,91 @@
+namespace ProjectAirFighter;
+
+///
+/// Форма работы с объектом "истребитель"
+///
+public partial class FormAirFighter : Form
+{
+ ///
+ /// Поле-объект для прорисовки объекта
+ ///
+ private DrawningAirFighter? _drawningAirFighter;
+
+ ///
+ /// Конструктор формы
+ ///
+ public FormAirFighter()
+ {
+ InitializeComponent();
+ }
+
+ ///
+ /// Метод прорисовки истребителя
+ ///
+ private void Draw()
+ {
+ if (_drawningAirFighter == null)
+ {
+ return;
+ }
+
+ Bitmap bmp = new(pictureBoxAirFighter.Width, pictureBoxAirFighter.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningAirFighter.DrawTransport(gr);
+ pictureBoxAirFighter.Image = bmp;
+ }
+
+ ///
+ /// Обработка нажатия кнопки "Создать"
+ ///
+ ///
+ ///
+ private void ButtonCreateAirFighter_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningAirFighter = new DrawningAirFighter();
+ _drawningAirFighter.Init(random.Next(300, 600), 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)), Convert.ToBoolean(random.Next(0, 2)));
+ _drawningAirFighter.SetPictureSize(pictureBoxAirFighter.Width, pictureBoxAirFighter.Height);
+ _drawningAirFighter.SetPosition(random.Next(10, 100), random.Next(10, 100));
+
+ Draw();
+ }
+
+ ///
+ /// Перемещение объекта по форме (нажатие кнопок навигации)
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningAirFighter == null)
+ {
+ return;
+ }
+
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ bool result = false;
+ switch (name)
+ {
+ case "buttonUp":
+ result = _drawningAirFighter.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ result = _drawningAirFighter.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ result = _drawningAirFighter.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ result = _drawningAirFighter.MoveTransport(DirectionType.Right);
+ break;
+ }
+
+ if (result)
+ {
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/Form1.resx b/ProjectAirFighter/ProjectAirFighter/FormAirFighter.resx
similarity index 93%
rename from ProjectAirFighter/ProjectAirFighter/Form1.resx
rename to ProjectAirFighter/ProjectAirFighter/FormAirFighter.resx
index 1af7de1..af32865 100644
--- a/ProjectAirFighter/ProjectAirFighter/Form1.resx
+++ b/ProjectAirFighter/ProjectAirFighter/FormAirFighter.resx
@@ -1,17 +1,17 @@
-
diff --git a/ProjectAirFighter/ProjectAirFighter/Program.cs b/ProjectAirFighter/ProjectAirFighter/Program.cs
index da2d7dd..fc87305 100644
--- a/ProjectAirFighter/ProjectAirFighter/Program.cs
+++ b/ProjectAirFighter/ProjectAirFighter/Program.cs
@@ -11,7 +11,7 @@ namespace ProjectAirFighter
// 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 FormAirFighter());
}
}
}
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/ProjectAirFighter.csproj b/ProjectAirFighter/ProjectAirFighter/ProjectAirFighter.csproj
index e1a0735..244387d 100644
--- a/ProjectAirFighter/ProjectAirFighter/ProjectAirFighter.csproj
+++ b/ProjectAirFighter/ProjectAirFighter/ProjectAirFighter.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/Properties/Resources.Designer.cs b/ProjectAirFighter/ProjectAirFighter/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..48bca0e
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectAirFighter.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("ProjectAirFighter.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/ProjectAirFighter/ProjectAirFighter/Properties/Resources.resx b/ProjectAirFighter/ProjectAirFighter/Properties/Resources.resx
new file mode 100644
index 0000000..293419e
--- /dev/null
+++ b/ProjectAirFighter/ProjectAirFighter/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.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrowLeft.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrowRight.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrowUp.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectAirFighter/ProjectAirFighter/Resources/arrowDown.jpg b/ProjectAirFighter/ProjectAirFighter/Resources/arrowDown.jpg
new file mode 100644
index 0000000..f21002e
Binary files /dev/null and b/ProjectAirFighter/ProjectAirFighter/Resources/arrowDown.jpg differ
diff --git a/ProjectAirFighter/ProjectAirFighter/Resources/arrowLeft.jpg b/ProjectAirFighter/ProjectAirFighter/Resources/arrowLeft.jpg
new file mode 100644
index 0000000..61b8dae
Binary files /dev/null and b/ProjectAirFighter/ProjectAirFighter/Resources/arrowLeft.jpg differ
diff --git a/ProjectAirFighter/ProjectAirFighter/Resources/arrowRight.jpg b/ProjectAirFighter/ProjectAirFighter/Resources/arrowRight.jpg
new file mode 100644
index 0000000..b440197
Binary files /dev/null and b/ProjectAirFighter/ProjectAirFighter/Resources/arrowRight.jpg differ
diff --git a/ProjectAirFighter/ProjectAirFighter/Resources/arrowUp.jpg b/ProjectAirFighter/ProjectAirFighter/Resources/arrowUp.jpg
new file mode 100644
index 0000000..e630cea
Binary files /dev/null and b/ProjectAirFighter/ProjectAirFighter/Resources/arrowUp.jpg differ