diff --git a/Airbus_Base/Airbus_Base.csproj b/Airbus_Base/Airbus_Base.csproj index b57c89e..13ee123 100644 --- a/Airbus_Base/Airbus_Base.csproj +++ b/Airbus_Base/Airbus_Base.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/Airbus_Base/DirectionType.cs b/Airbus_Base/DirectionType.cs new file mode 100644 index 0000000..11b4deb --- /dev/null +++ b/Airbus_Base/DirectionType.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Airbus_Base +{ + internal enum DirectionType + { + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 + } +} diff --git a/Airbus_Base/DrawningAirbus.cs b/Airbus_Base/DrawningAirbus.cs new file mode 100644 index 0000000..2c0668e --- /dev/null +++ b/Airbus_Base/DrawningAirbus.cs @@ -0,0 +1,196 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Airbus_Base +{ + internal class DrawningAirbus + { + /// + /// Класс-сущность + /// + public EntityAirbus? EntityAirbus { get; private set; } + /// + /// Ширина окна + /// + private int _pictureWidth; + /// + /// Высота окна + /// + private int _pictureHeight; + /// + /// Левая координата прорисовки аэробуса + /// + private int _startPosX; + /// + /// Верхняя кооридната прорисовки аэробуса + /// + private int _startPosY; + /// + /// Ширина прорисовки аэробуса + /// + private readonly int _airbusWidth = 159; + /// + /// Высота прорисовки аэробуса + /// + private readonly int _airbusHeight = 103; + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Цвет корпуса + /// Дополнительный цвет + /// Признак наличия дополнительных двигателей + /// Признак наличия дополнительного отсека для пассажиров + /// Ширина картинки + /// Высота картинки + /// true - объект создан, false - проверка не пройдена, нельзя создать объект в этих размерах + public bool Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool additionalEngine, bool additionalPassengerCompartment, int width, int height) + { + if (width > _airbusWidth & height > _airbusHeight) + { + _pictureWidth = width; + _pictureHeight = height; + EntityAirbus = new EntityAirbus(); + EntityAirbus.Init(speed, weight, bodyColor, additionalColor, + additionalEngine, additionalPassengerCompartment); + return true; + } + else return false; + } + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + if (_startPosY + _airbusHeight < _pictureHeight) + _startPosY = y; + else + _startPosY = _pictureHeight - _airbusHeight; + if (_startPosX + _airbusWidth < _pictureWidth) + _startPosX = x; + else + _startPosX = _pictureWidth - _airbusWidth; + } + /// + /// Изменение направления перемещения + /// + /// Направление + public void MoveTransport(DirectionType direction) + { + if (EntityAirbus == null) + { + return; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX - EntityAirbus.Step > 0) + { + _startPosX -= (int)EntityAirbus.Step; + } + else _startPosX = 0; + break; + //вверх + case DirectionType.Up: + if (_startPosY - EntityAirbus.Step > 0) + { + _startPosY -= (int)EntityAirbus.Step; + } + else _startPosY = 0; + break; + // вправо + case DirectionType.Right: + if (_startPosX + _airbusWidth + EntityAirbus.Step < _pictureWidth) + { + _startPosX += (int)EntityAirbus.Step; + } + else _startPosX = _pictureWidth - _airbusWidth; + break; + //вниз + case DirectionType.Down: + if (_startPosY + _airbusHeight + EntityAirbus.Step < _pictureHeight) + { + _startPosY += (int)EntityAirbus.Step; + } + else _startPosY = _pictureHeight - _airbusHeight; + break; + } + } + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntityAirbus == null) + { + return; + } + Pen pen = new(Color.Black); + Brush brBlack = new SolidBrush(Color.Black); + Brush bodybrush = new SolidBrush(EntityAirbus.BodyColor); + Brush brAdd = new SolidBrush(EntityAirbus.AdditionalColor); + //передняя часть + Point[] k = { new Point(_startPosX + 140, _startPosY + 30), + new Point(_startPosX + 160, _startPosY + 56), new Point(_startPosX + 140, _startPosY + 81)}; + g.FillPolygon(brBlack, k); + //корпус + g.FillRectangle(bodybrush, _startPosX + 20, _startPosY + 30, 120, 50); + g.DrawRectangle(pen, _startPosX + 20, _startPosY + 30, 120, 50); + //колеса + g.DrawLine(pen, _startPosX + 45, _startPosY + 81, _startPosX + 45, _startPosY + 90); + g.DrawLine(pen, _startPosX + 110, _startPosY + 81, _startPosX + 110, _startPosY + 90); + g.FillEllipse(brBlack, _startPosX + 45, _startPosY + 85, 10, 10); + g.FillEllipse(brBlack, _startPosX + 35, _startPosY + 85, 10, 10); + g.FillEllipse(brBlack, _startPosX + 100, _startPosY + 85, 10, 10); + g.FillEllipse(brBlack, _startPosX + 110, _startPosY + 85, 10, 10); + //хвост + Point[] points1 = { new Point(_startPosX + 20, _startPosY + 30), + new Point(_startPosX + 20, _startPosY + 0), new Point(_startPosX + 50, _startPosY + 30)}; + g.FillPolygon(bodybrush, points1); + g.DrawLine(pen, _startPosX + 20, _startPosY + 30, _startPosX + 20, _startPosY + 0); + g.DrawLine(pen, _startPosX + 20, _startPosY + 0, _startPosX + 50, _startPosY + 30); + //крылья + Point[] points2 = { new Point(_startPosX + 65, _startPosY + 30), + new Point(_startPosX + 45, _startPosY + 10), new Point(_startPosX + 88, _startPosY + 30)}; + g.FillPolygon(bodybrush, points2); + g.DrawLine(pen, _startPosX + 65, _startPosY + 30, _startPosX + 45, _startPosY + 10); + g.DrawLine(pen, _startPosX + 45, _startPosY + 10, _startPosX + 88, _startPosY + 30); + Point[] points3 = { new Point(_startPosX + 65, _startPosY + 60), + new Point(_startPosX + 45, _startPosY + 100), new Point(_startPosX + 100, _startPosY + 60)}; + g.FillPolygon(bodybrush, points3); + g.DrawLine(pen, _startPosX + 65, _startPosY + 60, _startPosX + 45, _startPosY + 100); + g.DrawLine(pen, _startPosX + 45, _startPosY + 100, _startPosX + 100, _startPosY + 60); + g.FillEllipse(brBlack, _startPosX + 16, _startPosY + 27, 30, 6); + //Дополнительные двигатели + if (EntityAirbus.AdditionalEngine) + { + Point[] enginedraw = { new Point(_startPosX + 55, _startPosY + 30), + new Point(_startPosX + 69, _startPosY + 25), new Point(_startPosX + 55, _startPosY + 20)}; + g.FillPolygon(brAdd, enginedraw); + Point[] enginedraw1 = { new Point(_startPosX + 55, _startPosY + 75), + new Point(_startPosX + 70, _startPosY + 70), new Point(_startPosX + 55, _startPosY + 65)}; + g.FillPolygon(brAdd, enginedraw1); + } + //Дополнительный отсек для пассажиров + if (EntityAirbus.AdditionalPassengerCompartment) + { + Point[] points = { new Point(_startPosX + 90, _startPosY + 30), + new Point(_startPosX + 100, _startPosY + 15), new Point(_startPosX + 130, _startPosY + 15), + new Point(_startPosX + 140, _startPosY + 30) }; + g.FillPolygon(brAdd, points); + g.DrawLine(pen, _startPosX + 90, _startPosY + 30, _startPosX + 100, _startPosY + 15); + g.DrawLine(pen, _startPosX + 100, _startPosY + 15, _startPosX + 130, _startPosY + 15); + g.DrawLine(pen, _startPosX + 130, _startPosY + 15, _startPosX + 140, _startPosY + 30); + } + } + } +} diff --git a/Airbus_Base/EntityAirbus.cs b/Airbus_Base/EntityAirbus.cs new file mode 100644 index 0000000..f36f2ac --- /dev/null +++ b/Airbus_Base/EntityAirbus.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Airbus_Base +{ + internal class EntityAirbus + { + /// + /// Скорость + /// + public int Speed { get; private set; } + /// + /// Вес + /// + public double Weight { get; private set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + /// + /// Дополнительный цвет (для опциональных элементов) + /// + public Color AdditionalColor { get; private set; } + /// + /// Признак (опция) наличия дополнительных двигателей + /// + public bool AdditionalEngine { get; private set; } + /// + /// Признак (опция) наличия дополнительного отсека для пассажиров + /// + public bool AdditionalPassengerCompartment { get; private set; } + /// + /// Шаг перемещения аэробуса + /// + public double Step => (double)Speed * 100 / Weight; + /// + /// Инициализация полей объекта-класса аэробуса + /// + /// Скорость + /// Вес аэробуса + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия дополнительных двигателей + /// Признак наличия дополнительного отсека для пассажиров + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool additionalEngine, bool additionalPassengerCompartment) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + AdditionalEngine = additionalEngine; + AdditionalPassengerCompartment = additionalPassengerCompartment; + } + } +} diff --git a/Airbus_Base/Form1.Designer.cs b/Airbus_Base/Form1.Designer.cs deleted file mode 100644 index 2a1590b..0000000 --- a/Airbus_Base/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace Airbus_Base -{ - 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/Airbus_Base/Form1.cs b/Airbus_Base/Form1.cs deleted file mode 100644 index ff32829..0000000 --- a/Airbus_Base/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Airbus_Base -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/Airbus_Base/FormAirbus.Designer.cs b/Airbus_Base/FormAirbus.Designer.cs new file mode 100644 index 0000000..fbf4832 --- /dev/null +++ b/Airbus_Base/FormAirbus.Designer.cs @@ -0,0 +1,144 @@ +namespace Airbus_Base +{ + 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.pictureBoxAirbus = new System.Windows.Forms.PictureBox(); + this.buttonCreate = new System.Windows.Forms.Button(); + this.buttonLeft = new System.Windows.Forms.Button(); + this.buttonUp = new System.Windows.Forms.Button(); + this.buttonRight = new System.Windows.Forms.Button(); + this.buttonDown = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAirbus)).BeginInit(); + this.SuspendLayout(); + // + // pictureBoxAirbus + // + this.pictureBoxAirbus.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBoxAirbus.Location = new System.Drawing.Point(0, 0); + this.pictureBoxAirbus.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.pictureBoxAirbus.Name = "pictureBoxAirbus"; + this.pictureBoxAirbus.Size = new System.Drawing.Size(882, 453); + this.pictureBoxAirbus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxAirbus.TabIndex = 0; + this.pictureBoxAirbus.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(14, 406); + this.buttonCreate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.buttonCreate.Name = "buttonCreate"; + this.buttonCreate.Size = new System.Drawing.Size(86, 31); + this.buttonCreate.TabIndex = 1; + this.buttonCreate.Text = "Создать"; + this.buttonCreate.UseVisualStyleBackColor = true; + this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click); + // + // buttonLeft + // + this.buttonLeft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonLeft.BackgroundImage = global::Airbus_Base.Properties.Resources.Left; + this.buttonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.buttonLeft.Location = new System.Drawing.Point(756, 407); + this.buttonLeft.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.buttonLeft.Name = "buttonLeft"; + this.buttonLeft.Size = new System.Drawing.Size(30, 30); + this.buttonLeft.TabIndex = 2; + this.buttonLeft.UseVisualStyleBackColor = true; + this.buttonLeft.Click += new System.EventHandler(this.buttonMove_Click); + // + // buttonUp + // + this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonUp.BackgroundImage = global::Airbus_Base.Properties.Resources.Up; + this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.buttonUp.Location = new System.Drawing.Point(792, 368); + this.buttonUp.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.buttonUp.Name = "buttonUp"; + this.buttonUp.Size = new System.Drawing.Size(30, 30); + 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_Base.Properties.Resources.Right; + this.buttonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.buttonRight.Location = new System.Drawing.Point(828, 407); + this.buttonRight.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.buttonRight.Name = "buttonRight"; + this.buttonRight.Size = new System.Drawing.Size(30, 30); + this.buttonRight.TabIndex = 4; + this.buttonRight.UseVisualStyleBackColor = true; + this.buttonRight.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_Base.Properties.Resources.Down; + this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.buttonDown.Location = new System.Drawing.Point(792, 406); + this.buttonDown.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.buttonDown.Name = "buttonDown"; + this.buttonDown.Size = new System.Drawing.Size(30, 30); + this.buttonDown.TabIndex = 5; + this.buttonDown.UseVisualStyleBackColor = true; + this.buttonDown.Click += new System.EventHandler(this.buttonMove_Click); + // + // FormAirbus + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(882, 453); + this.Controls.Add(this.buttonDown); + this.Controls.Add(this.buttonRight); + this.Controls.Add(this.buttonUp); + this.Controls.Add(this.buttonLeft); + this.Controls.Add(this.buttonCreate); + this.Controls.Add(this.pictureBoxAirbus); + this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.Name = "FormAirbus"; + this.Text = "FormAirbus"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAirbus)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private PictureBox pictureBoxAirbus; + private Button buttonCreate; + private Button buttonLeft; + private Button buttonUp; + private Button buttonRight; + private Button buttonDown; + } +} \ No newline at end of file diff --git a/Airbus_Base/FormAirbus.cs b/Airbus_Base/FormAirbus.cs new file mode 100644 index 0000000..63e6182 --- /dev/null +++ b/Airbus_Base/FormAirbus.cs @@ -0,0 +1,99 @@ +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_Base +{ + /// + /// Форма работы с объектом "Аэробус" + /// + public partial class FormAirbus : Form + { + /// + /// Поле-объект для прорисовки объекта + /// + private DrawningAirbus? _drawningAirbus; + /// + /// Инициализация формы + /// + public FormAirbus() + { + InitializeComponent(); + } + /// + /// Метод прорисовки аэробуса + /// + private void Draw() + { + if (_drawningAirbus == null) + { + return; + } + Bitmap bmp = new(pictureBoxAirbus.Width, + pictureBoxAirbus.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningAirbus.DrawTransport(gr); + pictureBoxAirbus.Image = bmp; + } + /// + /// Обработка нажатия кнопки "Создать" + /// + /// + /// + + + 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)), + pictureBoxAirbus.Width, pictureBoxAirbus.Height); + _drawningAirbus.SetPosition(random.Next(10, 100), + random.Next(10, 100)); + Draw(); + } + /// + /// Изменение размеров формы + /// + /// + /// + 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(); + } + } + +} diff --git a/Airbus_Base/FormAirbus.resx b/Airbus_Base/FormAirbus.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/Airbus_Base/FormAirbus.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/Airbus_Base/Program.cs b/Airbus_Base/Program.cs index eddd72f..3a37388 100644 --- a/Airbus_Base/Program.cs +++ b/Airbus_Base/Program.cs @@ -11,7 +11,7 @@ namespace Airbus_Base // 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/Airbus_Base/Properties/Resources.Designer.cs b/Airbus_Base/Properties/Resources.Designer.cs new file mode 100644 index 0000000..5c5ad47 --- /dev/null +++ b/Airbus_Base/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace Airbus_Base.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_Base.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/Airbus_Base/Properties/Resources.resx b/Airbus_Base/Properties/Resources.resx new file mode 100644 index 0000000..5b441f2 --- /dev/null +++ b/Airbus_Base/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\Right.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\Down.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_Base/Resources/Down.png b/Airbus_Base/Resources/Down.png new file mode 100644 index 0000000..ff3555a Binary files /dev/null and b/Airbus_Base/Resources/Down.png differ diff --git a/Airbus_Base/Resources/Left.png b/Airbus_Base/Resources/Left.png new file mode 100644 index 0000000..ad0b209 Binary files /dev/null and b/Airbus_Base/Resources/Left.png differ diff --git a/Airbus_Base/Resources/Right.png b/Airbus_Base/Resources/Right.png new file mode 100644 index 0000000..0078897 Binary files /dev/null and b/Airbus_Base/Resources/Right.png differ diff --git a/Airbus_Base/Resources/Up.png b/Airbus_Base/Resources/Up.png new file mode 100644 index 0000000..0223b64 Binary files /dev/null and b/Airbus_Base/Resources/Up.png differ