diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Class1.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Class1.cs new file mode 100644 index 0000000..7584e99 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Class1.cs @@ -0,0 +1,62 @@ +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 Radar { get; private set; } + + /// + /// Признак (опция) наличия зенитного орудия + /// + public bool AAG { get; private set; } + + /// + /// Шаг перемещения зенитной установки + /// + public double Step => Speed * 150 / Weight; + + /// + /// Инициализация полей объекта-класса зенитой установки + /// + /// Скорость + /// Вес зенитной установки + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия радара + /// Признак наличия зенитного орудия + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool radar, bool aag) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Radar = radar; + AAG = aag; + } +} diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DirectionType.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DirectionType.cs new file mode 100644 index 0000000..1707abb --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DirectionType.cs @@ -0,0 +1,24 @@ +namespace ProjectAntiAircraftGun; + + /// + /// Направление перемещения + /// + public enum DirectionType + { + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 + } diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DrawningAntiAircraftGun.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DrawningAntiAircraftGun.cs new file mode 100644 index 0000000..7395878 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/DrawningAntiAircraftGun.cs @@ -0,0 +1,212 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectAntiAircraftGun; + +public class DrawingAntiAircraftGun +{ + /// + /// Класс-сущность + /// + public EntityAntiAircraftGun? EntityAntiAircraftGun { get; private set; } + + /// + /// Ширина окна + /// + private int? _pictureWidth; + + /// + /// Высота окна + /// + private int? _pictureHeight; + + /// + /// Левая координата прорисовки зенитки + /// + private int? _startPosX; + + /// + /// Верхняя кооридната прорисовки зенитки + /// + private int? _startPosY; + /// + /// Длина прорисовки зенитки + /// + private readonly int _drawingAntiAircraftGunWidth = 100; + + /// + /// Высота прорисовки зенитки + /// + private readonly int _drawingAntiAircraftGunHeight = 60; + + /// + /// Инициализация полей объекта-класса зенитой установки + /// + /// Скорость + /// Вес зенитной установки + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия радара + /// Признак наличия зенитного орудия + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool radar, bool aag) + { + EntityAntiAircraftGun = new EntityAntiAircraftGun(); + EntityAntiAircraftGun.Init(speed, weight, bodyColor, additionalColor, radar, aag); + _pictureWidth = null; + _pictureHeight = null; + _startPosX = null; + _startPosY = null; + } + + /// + /// Установка границ поля + /// + /// Ширина поля + /// Высота поля + /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах + public bool SetPictureSize(int width, int height) + { + if (_drawingAntiAircraftGunHeight > height || _drawingAntiAircraftGunWidth > width) return false; + + _pictureWidth = width; + _pictureHeight = height; + return true; + } + + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + + if (x < 0 || y < 0 || x + _drawingAntiAircraftGunWidth > _pictureWidth || y + _drawingAntiAircraftGunHeight > _pictureHeight) return; + + _startPosX = x; + _startPosY = y; + } + + /// + /// Изменение направления перемещения + /// + /// Направление + /// 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 + EntityAntiAircraftGun.Step + _drawingAntiAircraftGunWidth < _pictureWidth) + { + _startPosX += (int)EntityAntiAircraftGun.Step; + } + return true; + //вниз + case DirectionType.Down: + if (_startPosY.Value + EntityAntiAircraftGun.Step + _drawingAntiAircraftGunHeight < _pictureHeight) + { + _startPosY += (int)EntityAntiAircraftGun.Step; + } + return true; + default: + return false; + } + } + + /// + /// Прорисовка объекта + /// + /// + + public void DrawTransport(Graphics g) + { + if (EntityAntiAircraftGun == null || !_startPosX.HasValue || + !_startPosY.HasValue) + { + return; + } + + Pen pen = new(EntityAntiAircraftGun.BodyColor); + Pen additionalPen = new(EntityAntiAircraftGun.AdditionalColor); + + + + //зенитные орудия + if (EntityAntiAircraftGun.AAG) + { + + g.DrawLine(additionalPen, _startPosX.Value + 85, _startPosY.Value + 15, _startPosX.Value + 40, _startPosY.Value + 3); + g.DrawLine(additionalPen, _startPosX.Value + 83, _startPosY.Value + 13, _startPosX.Value + 38, _startPosY.Value + 1); + g.DrawLine(additionalPen, _startPosX.Value + 84, _startPosY.Value + 14, _startPosX.Value + 39, _startPosY.Value + 2); + } + //радар + if (EntityAntiAircraftGun.Radar) + { + g.DrawArc(additionalPen, _startPosX.Value + 5, _startPosY.Value + 5, 20, 20, -45, 180); + g.DrawArc(additionalPen, _startPosX.Value + 4, _startPosY.Value + 4, 20, 20, -45, 180); + g.DrawArc(additionalPen, _startPosX.Value + 6, _startPosY.Value + 6, 20, 20, -45, 180); + } + + + //гусеница + g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 30, 100, + 30); + + //колеса для гусеницы + Brush brBlack = new SolidBrush(EntityAntiAircraftGun.BodyColor); + g.FillEllipse(brBlack, _startPosX.Value + 5, _startPosY.Value + 35, 20, + 20); + + g.FillEllipse(brBlack, _startPosX.Value + 75, _startPosY.Value + 35, 20, + 20); + + + g.FillEllipse(brBlack, _startPosX.Value + 25, _startPosY.Value + 45, 10, + 10); + g.FillEllipse(brBlack, _startPosX.Value + 55, _startPosY.Value + 45, 10, + 10); + g.FillEllipse(brBlack, _startPosX.Value + 35, _startPosY.Value + 45, 10, + 10); + g.FillEllipse(brBlack, _startPosX.Value + 45, _startPosY.Value + 45, 10, + 10); + g.FillEllipse(brBlack, _startPosX.Value + 65, _startPosY.Value + 45, 10, + 10); + //корпус+башня + g.FillRectangle(brBlack, _startPosX.Value + 5, _startPosY.Value + 25, 90, + 10); + + g.FillRectangle(brBlack, _startPosX.Value + 30, _startPosY.Value + 9, 30, + 15); + } +} + diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.Designer.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.Designer.cs deleted file mode 100644 index 952ff78..0000000 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.Designer.cs +++ /dev/null @@ -1,39 +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() - { - 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/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.cs deleted file mode 100644 index 5f5aa0b..0000000 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectAntiAircraftGun -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.Designer.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.Designer.cs new file mode 100644 index 0000000..555c1ae --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.Designer.cs @@ -0,0 +1,138 @@ +namespace ProjectAntiAircraftGun +{ + partial class FormAntiAircraftGun + { + /// + /// 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() + { + pictureBoxAntiAircraftGun = new PictureBox(); + buttonCreate = new Button(); + buttonLeft = new Button(); + buttonUp = new Button(); + buttonRight = new Button(); + buttonDown = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxAntiAircraftGun).BeginInit(); + SuspendLayout(); + // + // pictureBoxAntiAircraftGun + // + pictureBoxAntiAircraftGun.Dock = DockStyle.Fill; + pictureBoxAntiAircraftGun.Location = new Point(0, 0); + pictureBoxAntiAircraftGun.Name = "pictureBoxAntiAircraftGun"; + pictureBoxAntiAircraftGun.Size = new Size(1309, 651); + pictureBoxAntiAircraftGun.SizeMode = PictureBoxSizeMode.AutoSize; + pictureBoxAntiAircraftGun.TabIndex = 0; + pictureBoxAntiAircraftGun.TabStop = false; + pictureBoxAntiAircraftGun.Click += pictureBoxAntiAircraftGun_Click; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(12, 610); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(94, 29); + buttonCreate.TabIndex = 1; + buttonCreate.Text = "Создать"; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += buttonCreate_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.StrLUp; + buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; + buttonLeft.Location = new Point(1179, 612); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(35, 35); + buttonLeft.TabIndex = 2; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += buttonMove_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.Up; + buttonUp.BackgroundImageLayout = ImageLayout.Stretch; + buttonUp.Location = new Point(1220, 571); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(35, 35); + buttonUp.TabIndex = 3; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += buttonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.StrRight; + buttonRight.BackgroundImageLayout = ImageLayout.Stretch; + buttonRight.Location = new Point(1261, 612); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(35, 35); + buttonRight.TabIndex = 4; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += buttonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.StrLDown; + buttonDown.BackgroundImageLayout = ImageLayout.Stretch; + buttonDown.Location = new Point(1220, 612); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(35, 35); + buttonDown.TabIndex = 5; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += buttonMove_Click; + // + // FormAntiAircraftGun + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(1309, 651); + Controls.Add(buttonDown); + Controls.Add(buttonRight); + Controls.Add(buttonUp); + Controls.Add(buttonLeft); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxAntiAircraftGun); + Name = "FormAntiAircraftGun"; + Text = "Зенитная установка"; + Click += buttonMove_Click; + ((System.ComponentModel.ISupportInitialize)pictureBoxAntiAircraftGun).EndInit(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private PictureBox pictureBoxAntiAircraftGun; + private Button buttonCreate; + private Button buttonLeft; + private Button buttonUp; + private Button buttonRight; + private Button buttonDown; + } +} \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.cs new file mode 100644 index 0000000..288f9d5 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.cs @@ -0,0 +1,95 @@ +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 FormAntiAircraftGun : Form + { + + private DrawingAntiAircraftGun? _drawingAntiAircraftGun; + public FormAntiAircraftGun() + { + InitializeComponent(); + } + private void Draw() + { + if (_drawingAntiAircraftGun == null) + { + return; + } + + Bitmap bmp = new(pictureBoxAntiAircraftGun.Width, + pictureBoxAntiAircraftGun.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawingAntiAircraftGun.DrawTransport(gr); + pictureBoxAntiAircraftGun.Image = bmp; + } + + private void pictureBoxAntiAircraftGun_Click(object sender, EventArgs e) + { + + } + + 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(pictureBoxAntiAircraftGun.Width, + pictureBoxAntiAircraftGun.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/FormAntiAircraftGun.resx similarity index 92% rename from ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.resx rename to ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.resx index 1af7de1..8b2ff64 100644 --- a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Form1.resx +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/FormAntiAircraftGun.resx @@ -1,17 +1,17 @@  - diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Program.cs b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Program.cs index f60dd13..e5ff67e 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 FormAntiAircraftGun()); } } } \ No newline at end of file diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/ProjectAntiAircraftGun.csproj b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/ProjectAntiAircraftGun.csproj index 663fdb8..af03d74 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..c6518a4 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.Designer.cs @@ -0,0 +1,143 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия: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 StrLDown { + get { + object obj = ResourceManager.GetObject("StrLDown", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap StrLUp { + get { + object obj = ResourceManager.GetObject("StrLUp", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap StrRight { + get { + object obj = ResourceManager.GetObject("StrRight", 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 Стрелка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/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.resx b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.resx new file mode 100644 index 0000000..c2780f7 --- /dev/null +++ b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Properties/Resources.resx @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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\СтрелкаUp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\StrLDown.jpg;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\СтрелкаDown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\StrRight.jpg;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\StrLUp.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Up.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/StrLDown.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrLDown.jpg new file mode 100644 index 0000000..a52b1b6 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrLDown.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrLUp.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrLUp.jpg new file mode 100644 index 0000000..593b7d3 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrLUp.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrRight.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrRight.jpg new file mode 100644 index 0000000..e552e86 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/StrRight.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/Up.jpg b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/Up.jpg new file mode 100644 index 0000000..8f83aab Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/Up.jpg differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаDown.png b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаDown.png new file mode 100644 index 0000000..cc99f30 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаDown.png differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаLeft.png b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаLeft.png new file mode 100644 index 0000000..09845f2 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаLeft.png differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаRight.png b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаRight.png new file mode 100644 index 0000000..89da6c1 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаRight.png differ diff --git a/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаUp.png b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаUp.png new file mode 100644 index 0000000..f06b8e9 Binary files /dev/null and b/ProjectAntiAircraftGun/ProjectAntiAircraftGun/Resources/СтрелкаUp.png differ