diff --git a/ProjectAirbus/ProjectAirbus/DirectionType.cs b/ProjectAirbus/ProjectAirbus/DirectionType.cs new file mode 100644 index 0000000..0fbb27d --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/DirectionType.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAirbus +{ + public enum DirectionType + { + Up = 1, + Down = 2, + Left = 3, + Right = 4 + + } +} diff --git a/ProjectAirbus/ProjectAirbus/DrawningAirbus.cs b/ProjectAirbus/ProjectAirbus/DrawningAirbus.cs new file mode 100644 index 0000000..d9648b8 --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/DrawningAirbus.cs @@ -0,0 +1,206 @@ +using ProjectAirbus; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAirbus +{ + public class DrawningAirbus + { + public DrawningWindows Windows; + + public EntityAirbus? EntityAirbus { get; private set; } + + private int? _pictureWidth; + + private int? _pictureHeight; + + private int? _startPosX; + + private int? _startPosY; + + private readonly int _drawningAirbusWidth = 140; + + private readonly int _drawningAirbusHeight = 60; + + public bool AdditionalEngine; + + + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool compartment, bool engine) + { + EntityAirbus = new EntityAirbus(); + EntityAirbus.Init(speed, weight, bodyColor, additionalColor, + compartment, engine); + _pictureWidth = null; + _pictureHeight = null; + _startPosX = null; + _startPosY = null; + Windows = new DrawningWindows(); + } + public bool SetPictureSize(int width, int height) + { + if (_drawningAirbusWidth < width && _drawningAirbusHeight < height) + { + _pictureWidth = width; + _pictureHeight = height; + if (_startPosX.HasValue && _startPosY.HasValue) + { + SetPosition(_startPosX.Value, _startPosY.Value); + } + + return true; + } + return false; + } + + public void SetPosition(int x, int y) + { + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + + if (x < 0 || x + _drawningAirbusWidth > _pictureWidth || y < 0 || y + _drawningAirbusHeight > _pictureHeight) + { + _startPosX = _pictureWidth - _drawningAirbusWidth; + _startPosY = _pictureHeight - _drawningAirbusHeight; + } + else + { + _startPosX = x; + _startPosY = y; + } + } + public bool MoveTransport(DirectionType direction) + { + if (EntityAirbus == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return false; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX.Value - EntityAirbus.Step > 0) + { + _startPosX -= (int)EntityAirbus.Step; + } + return true; + //вверх + case DirectionType.Up: + if (_startPosY.Value - EntityAirbus.Step > 0) + { + _startPosY -= (int)EntityAirbus.Step; + } + return true; + // вправо + case DirectionType.Right: + if (_startPosX.Value + EntityAirbus.Step + _drawningAirbusWidth < _pictureWidth) + { + _startPosX += (int)EntityAirbus.Step; + } + //TODO прописать логику сдвига в право + return true; + //вниз + case DirectionType.Down: + + if (_startPosY.Value + EntityAirbus.Step + _drawningAirbusHeight < _pictureHeight) + { + _startPosY += (int)EntityAirbus.Step; + } + return true; + default: + return false; + } + } + + public void DrawTransport(Graphics g) + { + if (EntityAirbus == null || !_startPosX.HasValue || !_startPosY.HasValue) + { return; } + Pen pen = new(Color.Black); + Brush brush = new SolidBrush(Color.Black); + Brush additionalBrush = new SolidBrush(EntityAirbus.AdditionalColor); + Brush bodyBrush = new SolidBrush(EntityAirbus.BodyColor); + g.FillRectangle(bodyBrush, _startPosX.Value, _startPosY.Value + 20, 120, 20); + g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 20, 120, 20); + Point point1 = new Point(_startPosX.Value, _startPosY.Value); + Point point2 = new Point(_startPosX.Value + 20, _startPosY.Value + 20); + Point point3 = new Point(_startPosX.Value, _startPosY.Value + 20); + Point point4 = new Point(_startPosX.Value, _startPosY.Value); + Point[] curvePoints1 = { point1, point2, point3, point4 }; + g.FillPolygon(bodyBrush, curvePoints1); + g.DrawPolygon(pen, curvePoints1); + point1 = new Point(_startPosX.Value + 120, _startPosY.Value + 20); + point2 = new Point(_startPosX.Value + 140, _startPosY.Value + 30); + point3 = new Point(_startPosX.Value + 120, _startPosY.Value + 40); + point4 = new Point(_startPosX.Value + 120, _startPosY.Value + 20); + Point[] curvePoints2 = { point1, point2, point3, point4 }; + g.FillPolygon(bodyBrush, curvePoints2); + g.DrawPolygon(pen, curvePoints2); + g.FillEllipse(brush, _startPosX.Value, _startPosY.Value + 17, 15, 6); + g.FillEllipse(brush, _startPosX.Value + 35, _startPosY.Value + 27, 50, 6); + g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 30, _startPosX.Value + 140, _startPosY.Value + 30); + g.DrawLine(pen, _startPosX.Value + 120, _startPosY.Value + 30, _startPosX.Value + 140, _startPosY.Value + 30); + pen.Width = 2; + g.DrawLine(pen, _startPosX.Value + 35, _startPosY.Value + 40, _startPosX.Value + 35, _startPosY.Value + 44); + g.DrawLine(pen, _startPosX.Value + 100, _startPosY.Value + 40, _startPosX.Value + 100, _startPosY.Value + 44); + g.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 43, 3, 3); + g.DrawRectangle(pen, _startPosX.Value + 36, _startPosY.Value + 43, 3, 3); + g.DrawRectangle(pen, _startPosX.Value + 99, _startPosY.Value + 43, 3, 3); + //Дополнительные двигатели + if (EntityAirbus.Engine) + { + Brush engineBrush = new + SolidBrush(EntityAirbus.AdditionalColor); + g.FillEllipse(additionalBrush, _startPosX.Value + 50, _startPosY.Value + 32, 20, 6); + } + //Дополнительный отсек для пассажиров + if (EntityAirbus.Compartment) + { + Brush engineBrush = new + SolidBrush(EntityAirbus.AdditionalColor); + point1 = new Point(_startPosX.Value + 90, _startPosY.Value + 10); + point2 = new Point(_startPosX.Value + 110, _startPosY.Value + 10); + point3 = new Point(_startPosX.Value + 120, _startPosY.Value + 20); + point4 = new Point(_startPosX.Value + 80, _startPosY.Value + 20); + Point[] curvePoints3 = { point1, point2, point3, point4, point1 }; + pen.Width = 1; + g.FillPolygon(additionalBrush, curvePoints3); + g.DrawPolygon(pen, curvePoints3); + } + Windows.DrawWindows(g, _startPosX, _startPosY, additionalBrush, pen); + // + if (EntityAirbus.NumWindows == 10) + { + for (int i = 0; i < 10; i++) + { + DrawningWindows.Draw(_startPosX + i * 6, _startPosY, EntityAirbus.AdditionalColor, g); + } + } + if (EntityAirbus.NumWindows == 20) + { + for (int i = 0; i < 20; i++) + { + DrawningWindows.Draw(_startPosX + i * 6, _startPosY, EntityAirbus.AdditionalColor, g); + } + } + if (EntityAirbus.NumWindows == 30) + { + for (int i = 0; i < 30; i++) + { + if (i < 20) + { + DrawningWindows.Draw(_startPosX + i * 6, _startPosY, EntityAirbus.AdditionalColor, g); + } + else DrawningWindows.Draw(_startPosX + 60 + (i - 20) * 6, _startPosY + 10, EntityAirbus.AdditionalColor, g); + + } + + } + } + } +} diff --git a/ProjectAirbus/ProjectAirbus/DrawningWindows.cs b/ProjectAirbus/ProjectAirbus/DrawningWindows.cs new file mode 100644 index 0000000..fbf7fac --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/DrawningWindows.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAirbus; + +public class DrawningWindows +{ + private NumWindows numWindows; + + public int SomeProperty + { + set + { + switch (value) + { + case 10: + numWindows = NumWindows.TenWindows; + break; + case 20: + numWindows = NumWindows.TwentyWindows; + break; + case 30: + numWindows = NumWindows.ThirtyWindows; + break; + default: + numWindows = NumWindows.TenWindows; + break; + } + + } + } + public void DrawWindows(Graphics g, int? _startPosX, int? _startPosY, Brush additionalBrush, Pen pen) + { + Brush brGreen = new SolidBrush(Color.Red); + switch (numWindows) + { + case NumWindows.TenWindows: + g.DrawEllipse(pen, _startPosX.Value + 1, _startPosY.Value + 23, 4, 4); + break; + case NumWindows.TwentyWindows: + g.DrawEllipse(pen, _startPosX.Value + 1, _startPosY.Value + 23, 4, 4); + break; + case NumWindows.ThirtyWindows: + g.DrawEllipse(pen, _startPosX.Value + 1, _startPosY.Value + 23, 4, 4); + break; + } + } +} + diff --git a/ProjectAirbus/ProjectAirbus/EntityAirbus.cs b/ProjectAirbus/ProjectAirbus/EntityAirbus.cs new file mode 100644 index 0000000..dd54fae --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/EntityAirbus.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAirbus; + +public class EntityAirbus +{ + public int Speed { get; set; } + + public double Weight { get; set; } + public Color BodyColor { get; private set; } + + public Color AdditionalColor { get; private set; } + + public bool Compartment { get; private set; } + + public bool Engine { get; private set; } + + public double Step => Speed * 100 / Weight; + + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool compartment, bool engine) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Compartment = compartment; + Engine = engine; + + } + +} diff --git a/ProjectAirbus/ProjectAirbus/Form1.Designer.cs b/ProjectAirbus/ProjectAirbus/Form1.Designer.cs deleted file mode 100644 index 2cef376..0000000 --- a/ProjectAirbus/ProjectAirbus/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ProjectAirbus -{ - 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/ProjectAirbus/ProjectAirbus/Form1.cs b/ProjectAirbus/ProjectAirbus/Form1.cs deleted file mode 100644 index 012e18e..0000000 --- a/ProjectAirbus/ProjectAirbus/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectAirbus -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} diff --git a/ProjectAirbus/ProjectAirbus/FormAirbus.Designer.cs b/ProjectAirbus/ProjectAirbus/FormAirbus.Designer.cs new file mode 100644 index 0000000..1fcc696 --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/FormAirbus.Designer.cs @@ -0,0 +1,153 @@ +namespace ProjectAirbus +{ + 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() + { + pictureAirbus = new PictureBox(); + buttonCreate = new Button(); + buttonLeft = new Button(); + buttonRight = new Button(); + buttonUp = new Button(); + buttonDown = new Button(); + numericUpDownWindows = new NumericUpDown(); + ((System.ComponentModel.ISupportInitialize)pictureAirbus).BeginInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownWindows).BeginInit(); + SuspendLayout(); + // + // pictureAirbus + // + pictureAirbus.Dock = DockStyle.Fill; + pictureAirbus.Location = new Point(0, 0); + pictureAirbus.Margin = new Padding(3, 2, 3, 2); + pictureAirbus.Name = "pictureAirbus"; + pictureAirbus.Size = new Size(700, 338); + pictureAirbus.TabIndex = 0; + pictureAirbus.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(10, 307); + buttonCreate.Margin = new Padding(3, 2, 3, 2); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(82, 22); + buttonCreate.TabIndex = 1; + buttonCreate.Text = "Создать"; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += buttonCreate_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.arrowLeft; + buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; + buttonLeft.Location = new Point(579, 302); + buttonLeft.Margin = new Padding(3, 2, 3, 2); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(31, 26); + buttonLeft.TabIndex = 2; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += buttonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.arrowRight; + buttonRight.BackgroundImageLayout = ImageLayout.Stretch; + buttonRight.Location = new Point(651, 302); + buttonRight.Margin = new Padding(3, 2, 3, 2); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(31, 26); + buttonRight.TabIndex = 3; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += buttonMove_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.arrowUp; + buttonUp.BackgroundImageLayout = ImageLayout.Stretch; + buttonUp.Location = new Point(615, 272); + buttonUp.Margin = new Padding(3, 2, 3, 2); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(31, 26); + buttonUp.TabIndex = 4; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += buttonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.arrowDown; + buttonDown.BackgroundImageLayout = ImageLayout.Stretch; + buttonDown.Location = new Point(615, 302); + buttonDown.Margin = new Padding(3, 2, 3, 2); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(31, 26); + buttonDown.TabIndex = 5; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += buttonMove_Click; + // + // numericUpDownWindows + // + numericUpDownWindows.Location = new Point(98, 307); + numericUpDownWindows.Name = "numericUpDownWindows"; + numericUpDownWindows.Size = new Size(120, 23); + numericUpDownWindows.TabIndex = 6; + // + // FormAirbus + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(700, 338); + Controls.Add(numericUpDownWindows); + Controls.Add(buttonDown); + Controls.Add(buttonUp); + Controls.Add(buttonRight); + Controls.Add(buttonLeft); + Controls.Add(buttonCreate); + Controls.Add(pictureAirbus); + Margin = new Padding(3, 2, 3, 2); + Name = "FormAirbus"; + Text = "Аэробус"; + ((System.ComponentModel.ISupportInitialize)pictureAirbus).EndInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownWindows).EndInit(); + ResumeLayout(false); + } + + #endregion + + private PictureBox pictureAirbus; + private Button buttonCreate; + private Button buttonLeft; + private Button buttonRight; + private Button buttonUp; + private Button buttonDown; + private NumericUpDown numericUpDownWindows; + } +} \ No newline at end of file diff --git a/ProjectAirbus/ProjectAirbus/FormAirbus.cs b/ProjectAirbus/ProjectAirbus/FormAirbus.cs new file mode 100644 index 0000000..8230999 --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/FormAirbus.cs @@ -0,0 +1,77 @@ +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 ProjectAirbus +{ + public partial class FormAirbus : Form + { + private DrawningAirbus? _drawningAirbus; + public FormAirbus() + { + InitializeComponent(); + } + + private void buttonCreate_Click(object sender, EventArgs e) + { + Random random = new(); + _drawningAirbus = new DrawningAirbus(); + _drawningAirbus.Init(random.Next(100, 300), 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))); + _drawningAirbus.SetPictureSize(pictureAirbus.Width, pictureAirbus.Height); + _drawningAirbus.SetPosition(random.Next(10, 100), random.Next(10, 100)); + _drawningAirbus.Windows.SomeProperty = (int)numericUpDownWindows.Value; + + Bitmap bmp = new(pictureAirbus.Width, pictureAirbus.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningAirbus.DrawTransport(gr); + pictureAirbus.Image = bmp; + + } + private void buttonMove_Click(object sender, EventArgs e) + { + if (_drawningAirbus == null) + { + return; + } + string name = ((Button)sender)?.Name ?? string.Empty; + switch (name) + { + case "buttonUp": + _drawningAirbus.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + _drawningAirbus.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + _drawningAirbus.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + _drawningAirbus.MoveTransport(DirectionType.Right); + break; + } + Draw(); + } + private void Draw() + { + if (_drawningAirbus == null) + { + return; + } + Bitmap bmp = new(pictureAirbus.Width, + pictureAirbus.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningAirbus.DrawTransport(gr); + pictureAirbus.Image = bmp; + } + } +} + diff --git a/ProjectAirbus/ProjectAirbus/Form1.resx b/ProjectAirbus/ProjectAirbus/FormAirbus.resx similarity index 93% rename from ProjectAirbus/ProjectAirbus/Form1.resx rename to ProjectAirbus/ProjectAirbus/FormAirbus.resx index 1af7de1..af32865 100644 --- a/ProjectAirbus/ProjectAirbus/Form1.resx +++ b/ProjectAirbus/ProjectAirbus/FormAirbus.resx @@ -1,17 +1,17 @@  - diff --git a/ProjectAirbus/ProjectAirbus/NumWindows.cs b/ProjectAirbus/ProjectAirbus/NumWindows.cs new file mode 100644 index 0000000..2ae7f85 --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/NumWindows.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAirbus; + +public enum NumWindows + +{ + TenWindows, + TwentyWindows, + ThirtyWindows, +} diff --git a/ProjectAirbus/ProjectAirbus/Program.cs b/ProjectAirbus/ProjectAirbus/Program.cs index a39e589..9d45ae4 100644 --- a/ProjectAirbus/ProjectAirbus/Program.cs +++ b/ProjectAirbus/ProjectAirbus/Program.cs @@ -11,7 +11,7 @@ namespace ProjectAirbus // 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 FormAirbus()); } } } \ No newline at end of file diff --git a/ProjectAirbus/ProjectAirbus/ProjectAirbus.csproj b/ProjectAirbus/ProjectAirbus/ProjectAirbus.csproj index 663fdb8..af03d74 100644 --- a/ProjectAirbus/ProjectAirbus/ProjectAirbus.csproj +++ b/ProjectAirbus/ProjectAirbus/ProjectAirbus.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/ProjectAirbus/ProjectAirbus/Properties/Resources.Designer.cs b/ProjectAirbus/ProjectAirbus/Properties/Resources.Designer.cs new file mode 100644 index 0000000..0014058 --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace ProjectAirbus.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("ProjectAirbus.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/ProjectAirbus/ProjectAirbus/Properties/Resources.resx b/ProjectAirbus/ProjectAirbus/Properties/Resources.resx new file mode 100644 index 0000000..69274b7 --- /dev/null +++ b/ProjectAirbus/ProjectAirbus/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.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowUp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ProjectAirbus/ProjectAirbus/Resources/arrowDown.png b/ProjectAirbus/ProjectAirbus/Resources/arrowDown.png new file mode 100644 index 0000000..31f436a Binary files /dev/null and b/ProjectAirbus/ProjectAirbus/Resources/arrowDown.png differ diff --git a/ProjectAirbus/ProjectAirbus/Resources/arrowLeft.png b/ProjectAirbus/ProjectAirbus/Resources/arrowLeft.png new file mode 100644 index 0000000..56c96c9 Binary files /dev/null and b/ProjectAirbus/ProjectAirbus/Resources/arrowLeft.png differ diff --git a/ProjectAirbus/ProjectAirbus/Resources/arrowRight.png b/ProjectAirbus/ProjectAirbus/Resources/arrowRight.png new file mode 100644 index 0000000..9a774db Binary files /dev/null and b/ProjectAirbus/ProjectAirbus/Resources/arrowRight.png differ diff --git a/ProjectAirbus/ProjectAirbus/Resources/arrowUp.png b/ProjectAirbus/ProjectAirbus/Resources/arrowUp.png new file mode 100644 index 0000000..cac383c Binary files /dev/null and b/ProjectAirbus/ProjectAirbus/Resources/arrowUp.png differ