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/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/DrawingAirbus.cs b/Airbus/Airbus/DrawingAirbus.cs new file mode 100644 index 0000000..db5eeb2 --- /dev/null +++ b/Airbus/Airbus/DrawingAirbus.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Airbus +{ + internal class DrawningAirbus + { + /// Класс-сущность + public EntityAirbus airbus { private set; get; } + /// Левая координата отрисовки автомобиля + private float _startPosX; + /// Верхняя кооридната отрисовки автомобиля + private float _startPosY; + /// Ширина окна отрисовки + private int? _pictureWidth = null; + /// Высота окна отрисовки + private int? _pictureHeight = null; + /// Ширина отрисовки автомобиля + private readonly int _airbusWidth = 150; //Ширина отрисовки корабля + private readonly int _airbusHeight = 30; //Высота отрисовки корабля + public void Init(int speed, float weight, Color bodyColor) + { + airbus = new EntityAirbus(); + airbus.Init(speed, weight, bodyColor); + } + + public void SetPosition(int x, int y, int width, int height) + { + if (width < _airbusWidth || height < _airbusHeight) return; + Random random = new Random(); + _startPosX = x < 0 || x + _airbusWidth > width ? random.Next(0, width - _airbusWidth) : x; + _startPosY = y < 0 || y + _airbusHeight > height ? random.Next(0, height - _airbusHeight) : y; + _startPosX = x; + _startPosY = y; + _pictureWidth = width; + _pictureHeight = height; + } + + public void MoveTransport(Direction direction) + { + if (!_pictureWidth.HasValue || !_pictureHeight.HasValue) return; + switch (direction) + { + case Direction.Left: //Влево + + if (_startPosX - airbus.Step > 0) _startPosX -= airbus.Step; + break; + case Direction.Up: //Вверх + if (_startPosY - airbus.Step > 0) _startPosY -= airbus.Step; + break; + case Direction.Right: //Вправо + if (_startPosX + _airbusWidth + airbus.Step - 6 < _pictureWidth) _startPosX += airbus.Step; + break; + case Direction.Down: //Вниз + if (_startPosY + _airbusHeight + airbus.Step < _pictureHeight) _startPosY += airbus.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(airbus?.BodyColor ?? Color.White); + g.FillPolygon(brush, new[] + { + new Point((int)(_startPosX + _airbusWidth - 25), (int)(_startPosY + 25)), + new Point((int)(_startPosX + _airbusWidth), (int)(_startPosY + 40)), + new Point((int)(_startPosX + _airbusWidth - 25), (int)(_startPosY + 55)), + new Point((int)(_startPosX + _airbusWidth - 25), (int)(_startPosY + 15)), + }); + g.FillRectangle(brush, _startPosX, _startPosY + 25, _airbusWidth - 25, _airbusHeight ); + 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.Red, 2), _startPosX + _airbusWidth - 40, _startPosY + 30, 20, 20); + g.DrawEllipse(new(Color.Red, 2), _startPosX + _airbusWidth - 65, _startPosY + 30, 20, 20); + g.DrawEllipse(new(Color.Red, 2), _startPosX + _airbusWidth - 90, _startPosY + 30, 20, 20); + + g.DrawEllipse(new(Color.Black, 2), _startPosX + _airbusWidth - 30, _startPosY + _airbusHeight + 25, 4, 4); + g.DrawEllipse(new(Color.Black, 2), _startPosX + _airbusWidth - 35, _startPosY + _airbusHeight + 25, 4, 4); + g.DrawEllipse(new(Color.Black, 2), _startPosX , _startPosY + _airbusHeight + 25, 4, 4); + } + + public void ChangeBorders(int width, int height) + { + _pictureWidth = width; + _pictureHeight = height; + if (_pictureWidth <= _airbusWidth || _pictureHeight <= _airbusHeight) + { + _pictureWidth = null; + _pictureHeight = null; + return; + } + if (_startPosX + _airbusWidth > _pictureWidth) + { + _startPosX = _pictureWidth.Value - _airbusWidth; + } + if (_startPosY + _airbusHeight > _pictureHeight) + { + _startPosY = _pictureHeight.Value - _airbusHeight; + } + } + } + + } diff --git a/Airbus/Airbus/EntityAirbus.cs b/Airbus/Airbus/EntityAirbus.cs new file mode 100644 index 0000000..448c9ae --- /dev/null +++ b/Airbus/Airbus/EntityAirbus.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 EntityAirbus + { + 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/FormAirbus.Designer.cs b/Airbus/Airbus/FormAirbus.Designer.cs new file mode 100644 index 0000000..d998927 --- /dev/null +++ b/Airbus/Airbus/FormAirbus.Designer.cs @@ -0,0 +1,176 @@ +namespace Airbus +{ + partial class FormAirbus + { + /// + /// 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.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); + // + // 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); + // + // FormAirbus + // + 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.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 = "FormAirbus"; + 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; + } +} diff --git a/Airbus/Airbus/FormAirbus.cs b/Airbus/Airbus/FormAirbus.cs new file mode 100644 index 0000000..b7c196b --- /dev/null +++ b/Airbus/Airbus/FormAirbus.cs @@ -0,0 +1,73 @@ +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 FormAirbus : Form + { + private DrawningAirbus airbus; + + public FormAirbus() + { + InitializeComponent(); + } + + private void Draw() + { + Bitmap bmp = new(pictureBox.Width, pictureBox.Height); + Graphics g = Graphics.FromImage(bmp); + airbus.DrawTransport(g); + pictureBox.Image = bmp; + } + + private void buttonCreate_Click(object sender, EventArgs e) + { + Random random = new Random(); + airbus = new DrawningAirbus(); + airbus.Init(random.Next(100, 300), random.Next(1000, 3000), Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256))); + airbus.SetPosition(random.Next(10, 100), random.Next(10, 100), pictureBox.Width, pictureBox.Height); + toolStripStatusLabelSpeed.Text = $"Скорость: {airbus.airbus?.Speed}"; + toolStripStatusLabelWight.Text = $"Вес: {airbus.airbus?.Weight}"; + toolStripStatusLabelColor.Text = $" : {airbus.airbus?.BodyColor}"; + Draw(); + } + + + + private void ButtonMove_Click(object sender, EventArgs e) + { + string name = ((Button)sender)?.Name ?? string.Empty; + switch (name) + { + case "buttonLeft": + Console.WriteLine(""); + airbus?.MoveTransport(Direction.Left); + break; + case "buttonUp": + airbus?.MoveTransport(Direction.Up); + break; + case "buttonRight": + airbus?.MoveTransport(Direction.Right); + break; + case "buttonDown": + airbus?.MoveTransport(Direction.Down); + break; + } + Draw(); + } + + private void PictureBox_Resize(object sender, EventArgs e) + { + airbus?.ChangeBorders(pictureBox.Width, pictureBox.Height); + Draw(); + } + } +} diff --git a/Airbus/Airbus/FormAirbus.resx b/Airbus/Airbus/FormAirbus.resx new file mode 100644 index 0000000..5cb320f --- /dev/null +++ b/Airbus/Airbus/FormAirbus.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..5486d2d --- /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 FormAirbus()); + } + } +} \ 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..c9cfc80 --- /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