diff --git a/AirFighter/AirFighter/AirFighter.csproj b/AirFighter/AirFighter/AirFighter.csproj
index b57c89e..13ee123 100644
--- a/AirFighter/AirFighter/AirFighter.csproj
+++ b/AirFighter/AirFighter/AirFighter.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/AirFighter/AirFighter/Direction.cs b/AirFighter/AirFighter/Direction.cs
new file mode 100644
index 0000000..7e6647a
--- /dev/null
+++ b/AirFighter/AirFighter/Direction.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AirFighter
+{
+ internal enum Direction
+ {
+ Up,
+ Right,
+ Left,
+ Down
+ }
+}
diff --git a/AirFighter/AirFighter/DrawingAirFighter.cs b/AirFighter/AirFighter/DrawingAirFighter.cs
new file mode 100644
index 0000000..a351a29
--- /dev/null
+++ b/AirFighter/AirFighter/DrawingAirFighter.cs
@@ -0,0 +1,159 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AirFighter
+{
+ internal class DrawingAirFighter
+ {
+ public EntityAirFighter AirFighter { get; private set; }
+
+ private float _startPosX;
+ private float _startPosY;
+
+ private int? _pictureWidth = null;
+ private int? _pictureHeight = null;
+
+ private readonly int _airFighterWidth = 195;
+ private readonly int _airFighterHeight = 166;
+
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ AirFighter = new EntityAirFighter();
+ AirFighter.Init(speed, weight, bodyColor);
+ }
+
+ public void SetPosition(int x, int y, int width, int height)
+ {
+ о
+ if (width < _airFighterWidth || height < _airFighterHeight) return;
+
+ if (_startPosX + _airFighterWidth > _pictureWidth) return;
+ if (_startPosX < 0) return;
+ if (_startPosY < 0) return;
+ if (_startPosY + _airFighterHeight > _pictureHeight) return;
+
+ _startPosX = x;
+ _startPosY = y;
+
+ _pictureWidth = width;
+ _pictureHeight = height;
+ }
+
+ public void MoveTransport(Direction direction)
+ {
+ if (!_pictureWidth.HasValue || !_pictureHeight.HasValue)
+ {
+ return;
+ }
+
+
+ switch (direction)
+ {
+ case Direction.Right:
+ if (_startPosX + _airFighterWidth + AirFighter.Step < _pictureWidth)
+ {
+ _startPosX += AirFighter.Step;
+ }
+ break;
+ case Direction.Left:
+ if (_startPosX - AirFighter.Step > 0)
+ {
+ _startPosX -= AirFighter.Step;
+ }
+ break;
+ case Direction.Up:
+ if (_startPosY - AirFighter.Step > 0)
+ {
+ _startPosY -= AirFighter.Step;
+ }
+ break;
+ case Direction.Down:
+ if (_startPosY + _airFighterHeight + AirFighter.Step < _pictureHeight)
+ {
+ _startPosY += AirFighter.Step;
+ }
+ break;
+ }
+
+ }
+
+ public void DrawTransport(Graphics g)
+ {
+ if (!_pictureWidth.HasValue || !_pictureHeight.HasValue)
+ {
+ return;
+ }
+
+ Pen pen = new(AirFighter.BodyColor);
+ Brush brushBlack = new SolidBrush(AirFighter.BodyColor);
+
+ PointF[] front = {
+ new(_startPosX + 160, _startPosY + 70),
+ new(_startPosX + 195, _startPosY + 83),
+ new(_startPosX + 160, _startPosY + 96)
+ };
+
+ PointF[] tailTop = {
+ new(_startPosX, _startPosY + 30),
+ new(_startPosX, _startPosY + 70),
+ new(_startPosX + 25, _startPosY + 70),
+ new(_startPosX + 25, _startPosY + 55)
+ };
+
+ PointF[] tailBottom = {
+ new(_startPosX, _startPosY + 96),
+ new(_startPosX, _startPosY + 136),
+ new(_startPosX + 25, _startPosY + 111),
+ new(_startPosX + 25, _startPosY + 96)
+ };
+
+ PointF[] wingTop =
+ {
+ new(_startPosX + 100, _startPosY),
+ new(_startPosX + 100, _startPosY + 70),
+ new(_startPosX + 75, _startPosY + 70),
+ new(_startPosX + 90, _startPosY),
+ };
+
+
+ PointF[] wingBottom =
+ {
+ new(_startPosX + 100, _startPosY + 96),
+ new(_startPosX + 100, _startPosY + 166),
+ new(_startPosX + 90, _startPosY + 166),
+ new(_startPosX + 75, _startPosY + 96),
+ };
+
+ g.FillPolygon(brushBlack, front);
+ g.DrawPolygon(pen, tailTop);
+ g.DrawPolygon(pen, tailBottom);
+ g.DrawPolygon(pen, wingTop);
+ g.DrawPolygon(pen, wingBottom);
+ g.DrawRectangle(pen, _startPosX, _startPosY + 70, 160, 26);
+ }
+
+ public void ChangeBorders(int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureWidth <= _airFighterWidth || _pictureHeight <= _airFighterHeight)
+ {
+ _pictureWidth = null;
+ _pictureHeight = null;
+ return;
+ }
+ if (_startPosX + _airFighterWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth.Value - _airFighterWidth;
+ }
+ if (_startPosY + _airFighterHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight.Value - _airFighterHeight;
+ }
+ }
+
+ }
+}
diff --git a/AirFighter/AirFighter/EntityAirFighter.cs b/AirFighter/AirFighter/EntityAirFighter.cs
new file mode 100644
index 0000000..f1d1eaa
--- /dev/null
+++ b/AirFighter/AirFighter/EntityAirFighter.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AirFighter
+{
+ internal class EntityAirFighter
+ {
+ 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 rnd = new();
+
+ Speed = speed <= 0 ? rnd.Next(50, 150) : speed;
+ Weight = weight <= 0 ? rnd.Next(50, 70) : weight;
+ BodyColor = bodyColor;
+ }
+ }
+}
diff --git a/AirFighter/AirFighter/Form1.Designer.cs b/AirFighter/AirFighter/Form1.Designer.cs
deleted file mode 100644
index 107e2e0..0000000
--- a/AirFighter/AirFighter/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace AirFighter
-{
- 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/AirFighter/AirFighter/Form1.cs b/AirFighter/AirFighter/Form1.cs
deleted file mode 100644
index dc93bbf..0000000
--- a/AirFighter/AirFighter/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace AirFighter
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/AirFighter/AirFighter/FormAirFighter.Designer.cs b/AirFighter/AirFighter/FormAirFighter.Designer.cs
new file mode 100644
index 0000000..ff1bd69
--- /dev/null
+++ b/AirFighter/AirFighter/FormAirFighter.Designer.cs
@@ -0,0 +1,185 @@
+namespace AirFighter
+{
+ 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()
+ {
+ this.CreateButton = new System.Windows.Forms.Button();
+ this.pictureBox = new System.Windows.Forms.PictureBox();
+ this.DownButton = new System.Windows.Forms.Button();
+ this.UpButton = new System.Windows.Forms.Button();
+ this.LeftButton = new System.Windows.Forms.Button();
+ this.RightButton = new System.Windows.Forms.Button();
+ this.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.toolStripStatusLabelSpeed = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelWeight = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelBodyColor = new System.Windows.Forms.ToolStripStatusLabel();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
+ this.statusStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // CreateButton
+ //
+ this.CreateButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.CreateButton.Location = new System.Drawing.Point(12, 390);
+ this.CreateButton.Name = "CreateButton";
+ this.CreateButton.Size = new System.Drawing.Size(94, 29);
+ this.CreateButton.TabIndex = 0;
+ this.CreateButton.Text = "create";
+ this.CreateButton.UseVisualStyleBackColor = true;
+ this.CreateButton.Click += new System.EventHandler(this.CreateButton_Click);
+ //
+ // 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.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox.TabIndex = 1;
+ this.pictureBox.TabStop = false;
+ this.pictureBox.Resize += new System.EventHandler(this.PictureBox_Resize);
+ //
+ // DownButton
+ //
+ this.DownButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.DownButton.BackgroundImage = global::AirFighter.Properties.Resources.down;
+ this.DownButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.DownButton.Location = new System.Drawing.Point(727, 389);
+ this.DownButton.Name = "DownButton";
+ this.DownButton.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.DownButton.Size = new System.Drawing.Size(30, 30);
+ this.DownButton.TabIndex = 2;
+ this.DownButton.UseVisualStyleBackColor = true;
+ this.DownButton.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // UpButton
+ //
+ this.UpButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.UpButton.BackgroundImage = global::AirFighter.Properties.Resources.up;
+ this.UpButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.UpButton.Location = new System.Drawing.Point(727, 354);
+ this.UpButton.Name = "UpButton";
+ this.UpButton.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.UpButton.Size = new System.Drawing.Size(30, 30);
+ this.UpButton.TabIndex = 3;
+ this.UpButton.UseVisualStyleBackColor = true;
+ this.UpButton.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // LeftButton
+ //
+ this.LeftButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.LeftButton.BackgroundImage = global::AirFighter.Properties.Resources.left;
+ this.LeftButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.LeftButton.Location = new System.Drawing.Point(691, 389);
+ this.LeftButton.Name = "LeftButton";
+ this.LeftButton.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.LeftButton.Size = new System.Drawing.Size(30, 30);
+ this.LeftButton.TabIndex = 4;
+ this.LeftButton.UseVisualStyleBackColor = true;
+ this.LeftButton.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // RightButton
+ //
+ this.RightButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.RightButton.BackgroundImage = global::AirFighter.Properties.Resources.right;
+ this.RightButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.RightButton.Location = new System.Drawing.Point(763, 389);
+ this.RightButton.Name = "RightButton";
+ this.RightButton.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.RightButton.Size = new System.Drawing.Size(30, 30);
+ this.RightButton.TabIndex = 5;
+ this.RightButton.UseVisualStyleBackColor = true;
+ this.RightButton.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabelSpeed,
+ this.toolStripStatusLabelWeight,
+ this.toolStripStatusLabelBodyColor});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 424);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(800, 26);
+ this.statusStrip1.TabIndex = 6;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // toolStripStatusLabelSpeed
+ //
+ this.toolStripStatusLabelSpeed.Name = "toolStripStatusLabelSpeed";
+ this.toolStripStatusLabelSpeed.Size = new System.Drawing.Size(74, 20);
+ this.toolStripStatusLabelSpeed.Text = "скорость:";
+ //
+ // toolStripStatusLabelWeight
+ //
+ this.toolStripStatusLabelWeight.Name = "toolStripStatusLabelWeight";
+ this.toolStripStatusLabelWeight.Size = new System.Drawing.Size(35, 20);
+ this.toolStripStatusLabelWeight.Text = "вес:";
+ //
+ // toolStripStatusLabelBodyColor
+ //
+ this.toolStripStatusLabelBodyColor.Name = "toolStripStatusLabelBodyColor";
+ this.toolStripStatusLabelBodyColor.Size = new System.Drawing.Size(43, 20);
+ this.toolStripStatusLabelBodyColor.Text = "цвет:";
+ //
+ // FormAirFighter
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.statusStrip1);
+ this.Controls.Add(this.RightButton);
+ this.Controls.Add(this.LeftButton);
+ this.Controls.Add(this.UpButton);
+ this.Controls.Add(this.DownButton);
+ this.Controls.Add(this.CreateButton);
+ this.Controls.Add(this.pictureBox);
+ this.Name = "FormAirFighter";
+ this.Text = "Form1";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private Button CreateButton;
+ private PictureBox pictureBox;
+ private Button DownButton;
+ private Button UpButton;
+ private Button LeftButton;
+ private Button RightButton;
+ private StatusStrip statusStrip1;
+ private ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private ToolStripStatusLabel toolStripStatusLabelWeight;
+ private ToolStripStatusLabel toolStripStatusLabelBodyColor;
+ }
+}
\ No newline at end of file
diff --git a/AirFighter/AirFighter/FormAirFighter.cs b/AirFighter/AirFighter/FormAirFighter.cs
new file mode 100644
index 0000000..b33c0a6
--- /dev/null
+++ b/AirFighter/AirFighter/FormAirFighter.cs
@@ -0,0 +1,72 @@
+namespace AirFighter
+{
+ public partial class FormAirFighter : Form
+ {
+ private DrawingAirFighter _airFighter;
+
+ public FormAirFighter()
+ {
+ InitializeComponent();
+ }
+
+ private void CreateButton_Click(object sender, EventArgs e)
+ {
+ Random rnd = new();
+
+ _airFighter = new DrawingAirFighter();
+
+ _airFighter.Init(rnd.Next(100, 300), rnd.Next(1000, 2000),
+ Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
+
+ _airFighter.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBox.Width, pictureBox.Height);
+
+ toolStripStatusLabelSpeed.Text = $": {_airFighter.AirFighter.Speed}";
+ toolStripStatusLabelWeight.Text = $": {_airFighter.AirFighter.Weight}";
+ toolStripStatusLabelBodyColor.Text = $": { _airFighter.AirFighter.BodyColor.Name}";
+
+ Draw();
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ string name = ((Button)sender).Name ?? string.Empty;
+
+ switch(name)
+ {
+ case "UpButton":
+ _airFighter?.MoveTransport(Direction.Up);
+ break;
+
+ case "LeftButton":
+ _airFighter?.MoveTransport(Direction.Left);
+ break;
+
+ case "DownButton":
+ _airFighter?.MoveTransport(Direction.Down);
+ break;
+
+ case "RightButton":
+ _airFighter?.MoveTransport(Direction.Right);
+ break;
+ }
+
+ Draw();
+ }
+
+ private void PictureBox_Resize(object sender, EventArgs e)
+ {
+ _airFighter?.ChangeBorders(pictureBox.Width, pictureBox.Height);
+ Draw();
+ }
+
+
+ public void Draw()
+ {
+ if (pictureBox.Width == 0 || pictureBox.Height == 0) return;
+ Bitmap bmp = new(pictureBox.Width, pictureBox.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _airFighter?.DrawTransport(gr);
+ pictureBox.Image = bmp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/AirFighter/AirFighter/FormAirFighter.resx b/AirFighter/AirFighter/FormAirFighter.resx
new file mode 100644
index 0000000..5cb320f
--- /dev/null
+++ b/AirFighter/AirFighter/FormAirFighter.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/AirFighter/AirFighter/Program.cs b/AirFighter/AirFighter/Program.cs
index 20f1938..61bec04 100644
--- a/AirFighter/AirFighter/Program.cs
+++ b/AirFighter/AirFighter/Program.cs
@@ -11,7 +11,7 @@ namespace AirFighter
// 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/AirFighter/AirFighter/Properties/Resources.Designer.cs b/AirFighter/AirFighter/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..d8f98bb
--- /dev/null
+++ b/AirFighter/AirFighter/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace AirFighter.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("AirFighter.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/AirFighter/AirFighter/Form1.resx b/AirFighter/AirFighter/Properties/Resources.resx
similarity index 84%
rename from AirFighter/AirFighter/Form1.resx
rename to AirFighter/AirFighter/Properties/Resources.resx
index 1af7de1..2a9fd3d 100644
--- a/AirFighter/AirFighter/Form1.resx
+++ b/AirFighter/AirFighter/Properties/Resources.resx
@@ -117,4 +117,17 @@
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\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\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/AirFighter/AirFighter/Resources/down.png b/AirFighter/AirFighter/Resources/down.png
new file mode 100644
index 0000000..0fa87bc
Binary files /dev/null and b/AirFighter/AirFighter/Resources/down.png differ
diff --git a/AirFighter/AirFighter/Resources/left.png b/AirFighter/AirFighter/Resources/left.png
new file mode 100644
index 0000000..084c674
Binary files /dev/null and b/AirFighter/AirFighter/Resources/left.png differ
diff --git a/AirFighter/AirFighter/Resources/right.png b/AirFighter/AirFighter/Resources/right.png
new file mode 100644
index 0000000..cc59acd
Binary files /dev/null and b/AirFighter/AirFighter/Resources/right.png differ
diff --git a/AirFighter/AirFighter/Resources/up.png b/AirFighter/AirFighter/Resources/up.png
new file mode 100644
index 0000000..cd5d8fe
Binary files /dev/null and b/AirFighter/AirFighter/Resources/up.png differ