diff --git a/Airbus/Airbus.sln b/Airbus/Airbus.sln
new file mode 100644
index 0000000..a4bcfa1
--- /dev/null
+++ b/Airbus/Airbus.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32929.385
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Airbus", "Airbus\Airbus.csproj", "{ED366BAA-3C16-414B-B381-DE0B509BFD6A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {ED366BAA-3C16-414B-B381-DE0B509BFD6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ED366BAA-3C16-414B-B381-DE0B509BFD6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ED366BAA-3C16-414B-B381-DE0B509BFD6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ED366BAA-3C16-414B-B381-DE0B509BFD6A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F80C7287-B0F9-477D-92F0-7592A3B0DEDC}
+ EndGlobalSection
+EndGlobal
diff --git a/Airbus/Airbus/Airbus.csproj b/Airbus/Airbus/Airbus.csproj
new file mode 100644
index 0000000..b57c89e
--- /dev/null
+++ b/Airbus/Airbus/Airbus.csproj
@@ -0,0 +1,11 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+ enable
+
+
+
\ No newline at end of file
diff --git a/Airbus/Airbus/CountPorthole.cs b/Airbus/Airbus/CountPorthole.cs
new file mode 100644
index 0000000..a64a5cb
--- /dev/null
+++ b/Airbus/Airbus/CountPorthole.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Airbus
+{
+ internal enum CountPorthole
+ {
+ None = 0,
+ Ten = 10,
+ Twenty = 20,
+ Thirty = 30,
+ }
+}
diff --git a/Airbus/Airbus/Direction.cs b/Airbus/Airbus/Direction.cs
new file mode 100644
index 0000000..5601bf7
--- /dev/null
+++ b/Airbus/Airbus/Direction.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Airbus
+{
+ internal enum Direction
+ {
+ Left = 1, //Влево
+ Up = 2, //Вверх
+ Right = 3, //Вправо
+ Down = 4 //Вниз
+ }
+}
diff --git a/Airbus/Airbus/DrawingAirplane.cs b/Airbus/Airbus/DrawingAirplane.cs
new file mode 100644
index 0000000..c3b1331
--- /dev/null
+++ b/Airbus/Airbus/DrawingAirplane.cs
@@ -0,0 +1,121 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Airbus
+{
+ internal class DrawningAirplane
+ {
+ /// Класс-сущность
+ public EntityAirplane airplane { private set; get; }
+
+ public DrawningPorthole porthole { private set; get; }
+ /// Левая координата отрисовки автомобиля
+ private float _startPosX;
+ /// Верхняя кооридната отрисовки автомобиля
+ private float _startPosY;
+ /// Ширина окна отрисовки
+ private int? _pictureWidth = null;
+ /// Высота окна отрисовки
+ private int? _pictureHeight = null;
+ /// Ширина отрисовки автомобиля
+ private readonly int _airplaneWidth = 150; //Ширина отрисовки корабля
+ private readonly int _airplaneHeight = 30; //Высота отрисовки корабля
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ airplane = new EntityAirplane();
+ porthole = new DrawningPorthole();
+ airplane.Init(speed, weight, bodyColor);
+ }
+
+ public void SetPosition(int x, int y, int width, int height)
+ {
+ if (width < _airplaneWidth || height < _airplaneHeight) return;
+ Random random = new Random();
+ _startPosX = x < 0 || x + _airplaneWidth > width ? random.Next(0, width - _airplaneWidth) : x;
+ _startPosY = y < 0 || y + _airplaneHeight > height ? random.Next(0, height - _airplaneHeight) : y;
+ _startPosX = x;
+ _startPosY = y;
+ _pictureWidth = width;
+ _pictureHeight = height;
+ }
+ public void Upd_count_Porthole(CountPorthole count)
+ {
+ porthole.CountPorthole = (int)count;
+ }
+ public void MoveTransport(Direction direction)
+ {
+ if (!_pictureWidth.HasValue || !_pictureHeight.HasValue) return;
+ switch (direction)
+ {
+ case Direction.Left: //Влево
+
+ if (_startPosX - airplane.Step > 0) _startPosX -= airplane.Step;
+ break;
+ case Direction.Up: //Вверх
+ if (_startPosY - airplane.Step > 0) _startPosY -= airplane.Step;
+ break;
+ case Direction.Right: //Вправо
+ if (_startPosX + _airplaneWidth + airplane.Step - 6 < _pictureWidth) _startPosX += airplane.Step;
+ break;
+ case Direction.Down: //Вниз
+ if (_startPosY + _airplaneHeight + airplane.Step + 25 < _pictureHeight) _startPosY += airplane.Step;
+ break;
+ }
+ }
+
+ public void DrawTransport(Graphics g)
+ {
+ if (_startPosX < 0 || _startPosY < 0 || !_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+ Pen pen = new(Color.Black);
+
+ SolidBrush brush = new SolidBrush(airplane?.BodyColor ?? Color.White);
+ g.FillPolygon(brush, new[]
+ {
+ new Point((int)(_startPosX + _airplaneWidth - 25), (int)(_startPosY + 25)),
+ new Point((int)(_startPosX + _airplaneWidth), (int)(_startPosY + 40)),
+ new Point((int)(_startPosX + _airplaneWidth - 25), (int)(_startPosY + 55)),
+ new Point((int)(_startPosX + _airplaneWidth - 25), (int)(_startPosY + 15)),
+ });
+ g.FillRectangle(brush, _startPosX, _startPosY + 25, _airplaneWidth - 25, _airplaneHeight);
+ g.DrawPolygon(pen, new[]
+ {
+ new Point((int)(_startPosX), (int)(_startPosY)),
+ new Point((int)(_startPosX + 25), (int)(_startPosY + 25)),
+ new Point((int)(_startPosX), (int)(_startPosY + 25)),
+ new Point((int)(_startPosX), (int)(_startPosY)),
+ });
+ g.DrawEllipse(new(Color.Blue, 2), _startPosX, _startPosY + 15, 25, 5);
+ g.DrawEllipse(new(Color.Black, 2), _startPosX + _airplaneWidth - 30, _startPosY + _airplaneHeight + 25, 4, 4);
+ g.DrawEllipse(new(Color.Black, 2), _startPosX + _airplaneWidth - 35, _startPosY + _airplaneHeight + 25, 4, 4);
+ g.DrawEllipse(new(Color.Black, 2), _startPosX , _startPosY + _airplaneHeight + 25, 4, 4);
+ porthole.DrawPorthole(g, Color.Red, _startPosX, _startPosY);
+ }
+
+ public void ChangeBorders(int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureWidth <= _airplaneWidth || _pictureHeight <= _airplaneHeight)
+ {
+ _pictureWidth = null;
+ _pictureHeight = null;
+ return;
+ }
+ if (_startPosX + _airplaneWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth.Value - _airplaneWidth;
+ }
+ if (_startPosY + _airplaneHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight.Value - _airplaneHeight;
+ }
+ }
+ }
+
+ }
diff --git a/Airbus/Airbus/DrawningPorthole.cs b/Airbus/Airbus/DrawningPorthole.cs
new file mode 100644
index 0000000..30b5273
--- /dev/null
+++ b/Airbus/Airbus/DrawningPorthole.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Airbus
+{
+ internal class DrawningPorthole
+ {
+ private CountPorthole _countpornhole;
+ public int CountPorthole
+ {
+ get => (int)_countpornhole;
+ set
+ {
+ _countpornhole = (CountPorthole)value;
+ }
+
+ }
+ public void DrawPorthole(Graphics g, Color color, float posX, float posY)
+ {
+
+ for (int i = 0; i < (int)CountPorthole / 2; i++)
+ {
+ g.DrawEllipse(new(color, 2), posX + 125 - i * 7, posY + 30, 5, 5);
+ g.DrawEllipse(new(color, 2), posX + 125 - i * 7, posY + 40, 5, 5);
+ }
+
+ }
+ }
+}
diff --git a/Airbus/Airbus/EntityAirplane.cs b/Airbus/Airbus/EntityAirplane.cs
new file mode 100644
index 0000000..0cfad23
--- /dev/null
+++ b/Airbus/Airbus/EntityAirplane.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Airbus
+{
+ internal class EntityAirplane
+ {
+ public int Speed { get; private set; } //Скорость
+ public float Weight { get; private set; } //Вес
+ public Color BodyColor { get; private set; } //Цвет
+ public float Step => Speed * 100 / Weight; //Шаг при перемещении
+ //Инициализация
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Random random = new Random();
+ Speed = speed <= 0 ? random.Next(50, 150) : speed;
+ Weight = weight <= 0 ? random.Next(40, 70) : weight;
+ BodyColor = bodyColor;
+ }
+ }
+}
diff --git a/Airbus/Airbus/FormAirplane.Designer.cs b/Airbus/Airbus/FormAirplane.Designer.cs
new file mode 100644
index 0000000..1fa348c
--- /dev/null
+++ b/Airbus/Airbus/FormAirplane.Designer.cs
@@ -0,0 +1,194 @@
+namespace Airbus
+{
+ partial class FormAirplane
+ {
+ ///
+ /// 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.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.toolStripStatusLabelSpeed = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelWight = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelColor = new System.Windows.Forms.ToolStripStatusLabel();
+ this.pictureBox = new System.Windows.Forms.PictureBox();
+ this.buttonCreate = new System.Windows.Forms.Button();
+ this.buttonUp = new System.Windows.Forms.Button();
+ this.buttonRight = new System.Windows.Forms.Button();
+ this.buttonLeft = new System.Windows.Forms.Button();
+ this.buttonDown = new System.Windows.Forms.Button();
+ this.comboBoxPortholeSer = new System.Windows.Forms.ComboBox();
+ this.statusStrip1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
+ this.SuspendLayout();
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.statusStrip1.Dock = System.Windows.Forms.DockStyle.None;
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabelSpeed,
+ this.toolStripStatusLabelWight,
+ this.toolStripStatusLabelColor});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 428);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(135, 22);
+ this.statusStrip1.TabIndex = 0;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // toolStripStatusLabelSpeed
+ //
+ this.toolStripStatusLabelSpeed.Name = "toolStripStatusLabelSpeed";
+ this.toolStripStatusLabelSpeed.Size = new System.Drawing.Size(59, 17);
+ this.toolStripStatusLabelSpeed.Text = "Скорость";
+ //
+ // toolStripStatusLabelWight
+ //
+ this.toolStripStatusLabelWight.Name = "toolStripStatusLabelWight";
+ this.toolStripStatusLabelWight.Size = new System.Drawing.Size(26, 17);
+ this.toolStripStatusLabelWight.Text = "Вес";
+ //
+ // toolStripStatusLabelColor
+ //
+ this.toolStripStatusLabelColor.Name = "toolStripStatusLabelColor";
+ this.toolStripStatusLabelColor.Size = new System.Drawing.Size(33, 17);
+ this.toolStripStatusLabelColor.Text = "Цвет";
+ //
+ // pictureBox
+ //
+ this.pictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pictureBox.Location = new System.Drawing.Point(0, 0);
+ this.pictureBox.Name = "pictureBox";
+ this.pictureBox.Size = new System.Drawing.Size(800, 450);
+ this.pictureBox.TabIndex = 1;
+ this.pictureBox.TabStop = false;
+ //
+ // buttonCreate
+ //
+ this.buttonCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.buttonCreate.Location = new System.Drawing.Point(0, 402);
+ this.buttonCreate.Name = "buttonCreate";
+ this.buttonCreate.Size = new System.Drawing.Size(75, 23);
+ this.buttonCreate.TabIndex = 2;
+ this.buttonCreate.Text = "Создать";
+ this.buttonCreate.UseVisualStyleBackColor = true;
+ this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click);
+ //
+ // buttonUp
+ //
+ this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonUp.BackgroundImage = global::Airbus.Properties.Resources.v2;
+ this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonUp.Location = new System.Drawing.Point(719, 326);
+ this.buttonUp.Name = "buttonUp";
+ this.buttonUp.Size = new System.Drawing.Size(35, 35);
+ this.buttonUp.TabIndex = 3;
+ this.buttonUp.UseVisualStyleBackColor = true;
+ this.buttonUp.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // buttonRight
+ //
+ this.buttonRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonRight.BackgroundImage = global::Airbus.Properties.Resources.v3;
+ this.buttonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonRight.Location = new System.Drawing.Point(753, 358);
+ this.buttonRight.Name = "buttonRight";
+ this.buttonRight.Size = new System.Drawing.Size(35, 35);
+ this.buttonRight.TabIndex = 4;
+ this.buttonRight.UseVisualStyleBackColor = true;
+ this.buttonRight.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // buttonLeft
+ //
+ this.buttonLeft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonLeft.BackgroundImage = global::Airbus.Properties.Resources.v1;
+ this.buttonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonLeft.Location = new System.Drawing.Point(686, 358);
+ this.buttonLeft.Name = "buttonLeft";
+ this.buttonLeft.Size = new System.Drawing.Size(35, 35);
+ this.buttonLeft.TabIndex = 5;
+ this.buttonLeft.UseVisualStyleBackColor = true;
+ this.buttonLeft.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // comboBoxPortholeSer
+ //
+ this.comboBoxPortholeSer.FormattingEnabled = true;
+ this.comboBoxPortholeSer.Items.AddRange(new object[] {
+ "10",
+ "20",
+ "30"});
+ this.comboBoxPortholeSer.Location = new System.Drawing.Point(12, 12);
+ this.comboBoxPortholeSer.Name = "comboBoxPortholeSer";
+ this.comboBoxPortholeSer.Size = new System.Drawing.Size(158, 23);
+ this.comboBoxPortholeSer.TabIndex = 7;
+ this.comboBoxPortholeSer.Text = "Кол-во Иллюминаторов";
+ this.comboBoxPortholeSer.SelectedIndexChanged += new System.EventHandler(this.comboBoxPortholeSer_SelectedIndexChanged);
+ //
+ //
+ // buttonDown
+ //
+ this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonDown.BackgroundImage = global::Airbus.Properties.Resources.v4;
+ this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonDown.Location = new System.Drawing.Point(719, 390);
+ this.buttonDown.Name = "buttonDown";
+ this.buttonDown.Size = new System.Drawing.Size(35, 35);
+ this.buttonDown.TabIndex = 6;
+ this.buttonDown.UseVisualStyleBackColor = true;
+ this.buttonDown.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // FormAirplane
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.comboBoxPortholeSer);
+ this.Controls.Add(this.buttonDown);
+ this.Controls.Add(this.buttonLeft);
+ this.Controls.Add(this.buttonRight);
+ this.Controls.Add(this.buttonUp);
+ this.Controls.Add(this.buttonCreate);
+ this.Controls.Add(this.statusStrip1);
+ this.Controls.Add(this.pictureBox);
+ this.Name = "FormAirplane";
+ this.Text = "Airbus";
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+ #endregion
+ private StatusStrip statusStrip1;
+ private ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private ToolStripStatusLabel toolStripStatusLabelWight;
+ private ToolStripStatusLabel toolStripStatusLabelColor;
+ private PictureBox pictureBox;
+ private Button buttonCreate;
+ private Button buttonUp;
+ private Button buttonRight;
+ private Button buttonLeft;
+ private Button buttonDown;
+ private ComboBox comboBoxPortholeSer;
+ }
+}
diff --git a/Airbus/Airbus/FormAirplane.cs b/Airbus/Airbus/FormAirplane.cs
new file mode 100644
index 0000000..c6227ee
--- /dev/null
+++ b/Airbus/Airbus/FormAirplane.cs
@@ -0,0 +1,94 @@
+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 Airbus
+{
+ public partial class FormAirplane : Form
+ {
+ private DrawningAirplane airplane;
+
+ public FormAirplane()
+ {
+ InitializeComponent();
+ }
+
+ private void Draw()
+ {
+ Bitmap bmp = new(pictureBox.Width, pictureBox.Height);
+ Graphics g = Graphics.FromImage(bmp);
+ airplane.DrawTransport(g);
+ pictureBox.Image = bmp;
+ }
+
+ private void buttonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new Random();
+ airplane = new DrawningAirplane();
+ airplane.Init(random.Next(100, 300), random.Next(1000, 3000), Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)));
+ airplane.SetPosition(random.Next(10, 100), random.Next(10, 100), pictureBox.Width, pictureBox.Height);
+ toolStripStatusLabelSpeed.Text = $"Скорость: {airplane.airplane?.Speed}";
+ toolStripStatusLabelWight.Text = $"Вес: {airplane.airplane?.Weight}";
+ toolStripStatusLabelColor.Text = $" : {airplane.airplane?.BodyColor}";
+ airplane.Upd_count_Porthole(count_porthole);
+ Draw();
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonLeft":
+ Console.WriteLine("");
+ airplane?.MoveTransport(Direction.Left);
+ break;
+ case "buttonUp":
+ airplane?.MoveTransport(Direction.Up);
+ break;
+ case "buttonRight":
+ airplane?.MoveTransport(Direction.Right);
+ break;
+ case "buttonDown":
+ airplane?.MoveTransport(Direction.Down);
+ break;
+ }
+ Draw();
+ }
+ CountPorthole count_porthole = CountPorthole.Ten;
+ private void comboBoxPortholeSer_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ switch (comboBoxPortholeSer.Text)
+ {
+ case "10":
+ count_porthole = CountPorthole.Ten;
+ break;
+ case "20":
+ count_porthole = CountPorthole.Twenty;
+ break;
+ case "30":
+ count_porthole = CountPorthole.Thirty;
+ break;
+
+ }
+ if (airplane != null)
+ {
+ airplane.Upd_count_Porthole(count_porthole);
+ Draw();
+ }
+ }
+ private void PictureBox_Resize(object sender, EventArgs e)
+ {
+ airplane?.ChangeBorders(pictureBox.Width, pictureBox.Height);
+ Draw();
+ }
+ }
+}
diff --git a/Airbus/Airbus/FormAirplane.resx b/Airbus/Airbus/FormAirplane.resx
new file mode 100644
index 0000000..5cb320f
--- /dev/null
+++ b/Airbus/Airbus/FormAirplane.resx
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/Airbus/Airbus/Program.cs b/Airbus/Airbus/Program.cs
new file mode 100644
index 0000000..d0fc544
--- /dev/null
+++ b/Airbus/Airbus/Program.cs
@@ -0,0 +1,17 @@
+namespace Airbus
+{
+ internal static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ // To customize application configuration such as set high DPI settings or default font,
+ // see https://aka.ms/applicationconfiguration.
+ ApplicationConfiguration.Initialize();
+ Application.Run(new FormAirplane());
+ }
+ }
+}
\ No newline at end of file
diff --git a/Airbus/Airbus/Properties/Resources.Designer.cs b/Airbus/Airbus/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..f19282a
--- /dev/null
+++ b/Airbus/Airbus/Properties/Resources.Designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace Airbus.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("Airbus.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));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap v1 {
+ get {
+ object obj = ResourceManager.GetObject("v1", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap v2 {
+ get {
+ object obj = ResourceManager.GetObject("v2", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap v3 {
+ get {
+ object obj = ResourceManager.GetObject("v3", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap v4 {
+ get {
+ object obj = ResourceManager.GetObject("v4", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/Airbus/Airbus/Properties/Resources.resx b/Airbus/Airbus/Properties/Resources.resx
new file mode 100644
index 0000000..80a3c98
--- /dev/null
+++ b/Airbus/Airbus/Properties/Resources.resx
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\v4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\v2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\v1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\v3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/Airbus/Airbus/Resources/down.png b/Airbus/Airbus/Resources/down.png
new file mode 100644
index 0000000..35326ae
Binary files /dev/null and b/Airbus/Airbus/Resources/down.png differ
diff --git a/Airbus/Airbus/Resources/left.png b/Airbus/Airbus/Resources/left.png
new file mode 100644
index 0000000..1f4235b
Binary files /dev/null and b/Airbus/Airbus/Resources/left.png differ
diff --git a/Airbus/Airbus/Resources/right.png b/Airbus/Airbus/Resources/right.png
new file mode 100644
index 0000000..5f1371e
Binary files /dev/null and b/Airbus/Airbus/Resources/right.png differ
diff --git a/Airbus/Airbus/Resources/up.png b/Airbus/Airbus/Resources/up.png
new file mode 100644
index 0000000..d51fe79
Binary files /dev/null and b/Airbus/Airbus/Resources/up.png differ
diff --git a/Airbus/Airbus/Resources/v1.png b/Airbus/Airbus/Resources/v1.png
new file mode 100644
index 0000000..1f4235b
Binary files /dev/null and b/Airbus/Airbus/Resources/v1.png differ
diff --git a/Airbus/Airbus/Resources/v2.png b/Airbus/Airbus/Resources/v2.png
new file mode 100644
index 0000000..d51fe79
Binary files /dev/null and b/Airbus/Airbus/Resources/v2.png differ
diff --git a/Airbus/Airbus/Resources/v3.png b/Airbus/Airbus/Resources/v3.png
new file mode 100644
index 0000000..5f1371e
Binary files /dev/null and b/Airbus/Airbus/Resources/v3.png differ
diff --git a/Airbus/Airbus/Resources/v4.png b/Airbus/Airbus/Resources/v4.png
new file mode 100644
index 0000000..35326ae
Binary files /dev/null and b/Airbus/Airbus/Resources/v4.png differ