diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DirectionType.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DirectionType.cs new file mode 100644 index 0000000..2033d1c --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DirectionType.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAntiAircraftGun; + +/// +/// Направление перемещения +/// +public enum DirectionType +{ + /// + /// Вверх + /// + Up = 1, + + /// + /// Вниз + /// + Down = 2, + + /// + /// Влево + /// + Left = 3, + + /// + /// Вправо + /// + Right = 4 +} diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DrawingAntiAircraftGun.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DrawingAntiAircraftGun.cs new file mode 100644 index 0000000..54fd700 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DrawingAntiAircraftGun.cs @@ -0,0 +1,262 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using static System.Runtime.InteropServices.JavaScript.JSType; + +namespace ProjectAntiAircraftGun; + +/// +/// Класс, отвечающий за прорисовку и перемещение объекта-сущности +/// +public class DrawingAntiAircraftGun +{ + /// + /// Класс-сущность + /// + public EntityAntiAircraftGun? EntityAntiAircraftGun { private set; get; } + + /// + /// Ширина окна + /// + private int? _pictureWidth; + + /// + /// Высота окна + /// + private int? _pictureHeight; + + /// + /// Левая координата прорисовки зенитного орудия + /// + private int? _startPosX; + + /// + /// Верхняя кооридната прорисовки зенитного орудия + /// + private int? _startPosY; + + /// + /// Ширина зенитного орудия + /// + private readonly int _antiAircrafGunWidth = 140; + + /// + /// Высота зенитного орудия + /// + private readonly int _antiAircrafGunHeight = 71; + + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес зенитного орудия + /// Цвет корпуса + /// Дополнительный цвет + /// Признак наличия обвеса + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool gun, bool radar) + { + EntityAntiAircraftGun = new EntityAntiAircraftGun(); + EntityAntiAircraftGun.Init(speed, weight, bodyColor, additionalColor, gun, radar); + _pictureWidth = null; + _pictureHeight = null; + _startPosX = null; + _startPosY = null; + } + + /// + /// Установка границ поля + /// + /// Ширина поля + /// Высота поля + /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах + public bool SetPictureSize(int width, int height) + { + if (width > _antiAircrafGunWidth && height > _antiAircrafGunHeight) + { + _pictureWidth = width; + _pictureHeight = height; + if (_startPosX != null && _startPosY != null) + { + if (_startPosX.Value < 0) _startPosX = 0; + if (_startPosY.Value < 0) _startPosY = 0; + if (_startPosX.Value + _antiAircrafGunWidth > _pictureWidth) + { + _startPosX = _pictureWidth - _antiAircrafGunWidth; + } + if (_startPosY.Value + _antiAircrafGunHeight > _pictureHeight) + { + _startPosY = _pictureHeight - _antiAircrafGunHeight; + } + } + + return true; + } + return false; + } + + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + _startPosX = x; + _startPosY = y; + if (_pictureHeight.Value < (_startPosY + _antiAircrafGunHeight)) + { + _startPosY = _pictureHeight - _antiAircrafGunHeight; + } + if (_pictureWidth.Value < (_startPosX = _antiAircrafGunWidth)) + { + _startPosX = _pictureWidth - _antiAircrafGunWidth; + } + } + + /// + /// Изменение направления перемещения + /// + /// Направление + /// true - перемещене выполнено, false - перемещение невозможно + public bool MoveTransport(DirectionType direction) + { + if (EntityAntiAircraftGun == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return false; + } + + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX.Value - EntityAntiAircraftGun.Step > 0) + { + _startPosX -= (int)EntityAntiAircraftGun.Step; + } + return true; + //вверх + case DirectionType.Up: + if (_startPosY.Value - EntityAntiAircraftGun.Step > 0) + { + _startPosY -= (int)EntityAntiAircraftGun.Step; + } + return true; + // вправо + case DirectionType.Right: + if (_startPosX.Value + _pictureHeight + EntityAntiAircraftGun.Step < _pictureWidth) + { + _startPosX += (int)EntityAntiAircraftGun.Step; + } + return true; ; + //вниз + case DirectionType.Down: + if (_startPosY + EntityAntiAircraftGun.Step + _pictureHeight < _pictureWidth) + { + _startPosY += (int)EntityAntiAircraftGun.Step; + } + return true; + default: + return false; + } + } + + /// + /// Отрисовка зенитного орудия + /// + /// + public void DrawTransport(Graphics g) + { + if (_startPosX < 0 || _startPosY < 0 + || !_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + + Pen pen = new(Color.Black); + Brush additionalBrush = new SolidBrush(EntityAntiAircraftGun.AdditionalColor); + Brush brGray = new SolidBrush(Color.Gray); + Brush brBlack = new SolidBrush(Color.Black); + Brush br = new SolidBrush(EntityAntiAircraftGun?.BodyColor ?? Color.Black); + + if (EntityAntiAircraftGun.Radar) + { + g.FillRectangle(additionalBrush, _startPosX.Value + 10, _startPosY.Value + 35, 5, 7); + g.FillEllipse(additionalBrush, _startPosX.Value + 2, _startPosY.Value + 16, 19, 19); + } + + + g.DrawRectangle(pen, _startPosX.Value + 25, _startPosY.Value + 40, 40, 10); + g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 50, 80, 10); + g.DrawRectangle(pen, _startPosX.Value + 10, _startPosY.Value + 50, 70, 20); + g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 50, 20, 20); + g.DrawEllipse(pen, _startPosX.Value + 70, _startPosY.Value + 50, 20, 20); + //Гусеницы + g.FillRectangle(brGray, _startPosX.Value + 10, _startPosY.Value + 50, 70, 20); + g.FillEllipse(brGray, _startPosX.Value, _startPosY.Value + 50, 20, 20); + g.FillEllipse(brGray, _startPosX.Value + 70, _startPosY.Value + 50, 20, 20); + //Катки в гусеницах + g.FillEllipse(brBlack, _startPosX.Value + 1, _startPosY.Value + 51, 18, 18); + g.FillEllipse(brBlack, _startPosX.Value + 69, _startPosY.Value + 51, 18, 18); + g.FillEllipse(brBlack, _startPosX.Value + 19, _startPosY.Value + 60, 11, 11); + g.FillEllipse(brBlack, _startPosX.Value + 58, _startPosY.Value + 60, 11, 11); + g.FillEllipse(brBlack, _startPosX.Value + 32, _startPosY.Value + 60, 11, 11); + g.FillEllipse(brBlack, _startPosX.Value + 45, _startPosY.Value + 60, 11, 11); + //Корпус + g.FillRectangle(br, _startPosX.Value + 25, _startPosY.Value + 30, 40, 10); + g.FillRectangle(br, _startPosX.Value + 5, _startPosY.Value + 40, 80, 10); + g.FillEllipse(br, _startPosX.Value + 27, _startPosY.Value + 46, 8, 8); + g.FillEllipse(br, _startPosX.Value + 40, _startPosY.Value + 46, 8, 8); + g.FillEllipse(br, _startPosX.Value + 53, _startPosY.Value + 46, 8, 8); + + if (EntityAntiAircraftGun.Gun) + { + g.FillRectangle(additionalBrush, _startPosX.Value + 35, _startPosY.Value + 20, 10, 10); + g.FillRectangle(additionalBrush, _startPosX.Value + 20, _startPosY.Value + 0, 50, 20); + g.FillRectangle(additionalBrush, _startPosX.Value + 70, _startPosY.Value + 3, 70, 5); + g.FillRectangle(additionalBrush, _startPosX.Value + 70, _startPosY.Value + 12, 70, 5); + + } + + + + + + + + + + + } + /// + /// Смена границ формы отрисовки + /// + /// Ширина картинки + /// Высота картинки + public void ChangeBorders(int width, int height) + { + _pictureWidth = width; + _pictureHeight = height; + if (_pictureWidth <= _antiAircrafGunWidth || _pictureHeight <= _antiAircrafGunHeight) + { + _pictureWidth = null; + _pictureHeight = null; + return; + } + if (_startPosX + _antiAircrafGunWidth > _pictureWidth) + { + _startPosX = _pictureWidth.Value - _antiAircrafGunWidth; + } + if (_startPosY + _antiAircrafGunHeight > _pictureHeight) + { + _startPosY = _pictureHeight.Value - _antiAircrafGunHeight; + } + } +} + diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/EntityAntiAircraftGun.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/EntityAntiAircraftGun.cs new file mode 100644 index 0000000..7dbacae --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/EntityAntiAircraftGun.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAntiAircraftGun; + +public class EntityAntiAircraftGun +{ + + /// + /// Скорость + /// + 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 Gun { get; private set; } + + /// + /// Наличие радара + /// + public bool Radar { get; private set; } + + /// + /// Шаг перемещения зенитного орудия + /// + public double Step => Speed * 100 / Weight; + + /// + /// Инициализация полей объекта-класса зенитного орудия + /// + /// + /// + /// + /// Дополнительный цвет + /// Зенитное орудие + /// Радар + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool radar, bool gun) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Gun = gun; + Radar = radar; + + } +} + + + diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.Designer.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.Designer.cs deleted file mode 100644 index c9b26de..0000000 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.Designer.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace ProjectAntiAircraftGun -{ - 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() - { - SuspendLayout(); - // - // Form1 - // - AutoScaleDimensions = new SizeF(7F, 15F); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(1708, 802); - Name = "Form1"; - Text = "Form1"; - ResumeLayout(false); - } - - #endregion - } -} \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.cs deleted file mode 100644 index c5553d6..0000000 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectAntiAircraftGun -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.Designer.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.Designer.cs new file mode 100644 index 0000000..9a5ca05 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.Designer.cs @@ -0,0 +1,134 @@ +namespace ProjectAntiAircraftGun +{ + partial class FormAntiAircrafGun + { + /// + /// 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() + { + pictureAntiAircrafGun = new PictureBox(); + buttonCreate = new Button(); + buttonLeft = new Button(); + buttonRight = new Button(); + buttonUp = new Button(); + buttonDown = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureAntiAircrafGun).BeginInit(); + SuspendLayout(); + // + // pictureAntiAircrafGun + // + pictureAntiAircrafGun.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; + pictureAntiAircrafGun.Location = new Point(0, 0); + pictureAntiAircrafGun.Name = "pictureAntiAircrafGun"; + pictureAntiAircrafGun.Size = new Size(1053, 561); + pictureAntiAircrafGun.TabIndex = 0; + pictureAntiAircrafGun.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(12, 526); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(75, 23); + 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(913, 514); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(35, 35); + 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(995, 514); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(35, 35); + 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(954, 473); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(35, 35); + 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(954, 514); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(35, 35); + buttonDown.TabIndex = 5; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += ButtonMove_Click; + // + // FormAntiAircrafGun + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(1053, 561); + Controls.Add(buttonDown); + Controls.Add(buttonUp); + Controls.Add(buttonRight); + Controls.Add(buttonLeft); + Controls.Add(buttonCreate); + Controls.Add(pictureAntiAircrafGun); + Name = "FormAntiAircrafGun"; + Text = "Зенитная установка"; + ((System.ComponentModel.ISupportInitialize)pictureAntiAircrafGun).EndInit(); + ResumeLayout(false); + } + + #endregion + + private PictureBox pictureAntiAircrafGun; + private Button buttonCreate; + private Button buttonLeft; + private Button buttonRight; + private Button buttonUp; + private Button buttonDown; + } +} \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.cs new file mode 100644 index 0000000..6eb873f --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.cs @@ -0,0 +1,103 @@ +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 ProjectAntiAircraftGun; + +/// +/// Форма работы с объектом "Зенитная установка" +/// +public partial class FormAntiAircrafGun : Form +{ + /// + /// Поле-объект для прорисовки объекта + /// + private DrawingAntiAircraftGun? _drawingAntiAircraftGun; + + /// + /// Конструктор формы + /// + public FormAntiAircrafGun() + { + InitializeComponent(); + } + + /// + /// Метод прорисовки машины + /// + private void Draw() + { + if (_drawingAntiAircraftGun == null) + { + return; + } + + Bitmap bmp = new(pictureAntiAircrafGun.Width, pictureAntiAircrafGun.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawingAntiAircraftGun.DrawTransport(gr); + pictureAntiAircrafGun.Image = bmp; + } + + /// + /// Обработка нажатия кнопки "Создать" + /// + /// + /// + private void buttonCreate_Click(object sender, EventArgs e) + { + Random random = new(); + _drawingAntiAircraftGun = new DrawingAntiAircraftGun(); + _drawingAntiAircraftGun.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))); + _drawingAntiAircraftGun.SetPictureSize(pictureAntiAircrafGun.Width, pictureAntiAircrafGun.Height); + _drawingAntiAircraftGun.SetPosition(random.Next(10, 100), random.Next(10, 100)); + Draw(); + + } + + /// + /// Перемещение объекта по форме (нажатие кнопок навигации) + /// + /// + /// + private void ButtonMove_Click(object sender, EventArgs e) + { + if (_drawingAntiAircraftGun == null) + { + return; + } + + string name = ((Button)sender)?.Name ?? string.Empty; + bool result = false; + switch (name) + { + case "buttonUp": + result = _drawingAntiAircraftGun.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + result = _drawingAntiAircraftGun.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + result = _drawingAntiAircraftGun.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + result = _drawingAntiAircraftGun.MoveTransport(DirectionType.Right); + break; + } + + if (result) + { + Draw(); + } + + } +} + diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.resx b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.resx similarity index 100% rename from ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.resx rename to ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircrafGun.resx diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Program.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Program.cs index f60dd13..6f92ea6 100644 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Program.cs +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Program.cs @@ -11,7 +11,7 @@ namespace ProjectAntiAircraftGun // 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 FormAntiAircrafGun()); } } } \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/ProjectAntiAircraftGun.csproj b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/ProjectAntiAircraftGun.csproj index e1a0735..244387d 100644 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/ProjectAntiAircraftGun.csproj +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/ProjectAntiAircraftGun.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.Designer.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.Designer.cs new file mode 100644 index 0000000..7560895 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace ProjectAntiAircraftGun.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("ProjectAntiAircraftGun.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/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.resx b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.resx new file mode 100644 index 0000000..3a25719 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/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\arrowLeft.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowUp.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowDown.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowRight.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowDown.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowDown.jpg new file mode 100644 index 0000000..f21002e Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowDown.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowLeft.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowLeft.jpg new file mode 100644 index 0000000..61b8dae Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowLeft.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowRight.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowRight.jpg new file mode 100644 index 0000000..b440197 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowRight.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowUp.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowUp.jpg new file mode 100644 index 0000000..e630cea Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/arrowUp.jpg differ