From bb608311d00c4e45626e5ac05b951926e73cd52c Mon Sep 17 00:00:00 2001 From: platoff aeeee Date: Tue, 3 Oct 2023 19:48:19 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=201?= =?UTF-8?q?=20=D0=BB=D0=B0=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/Tank/Direction.cs | 32 +++ Tank/Tank/DrawingTank.cs | 223 ++++++++++++++++++ Tank/Tank/EntityTank.cs | 66 ++++++ Tank/Tank/Form1.Designer.cs | 39 --- Tank/Tank/Form1.cs | 10 - Tank/Tank/FormTank.Designer.cs | 135 +++++++++++ Tank/Tank/FormTank.cs | 99 ++++++++ Tank/Tank/FormTank.resx | 60 +++++ Tank/Tank/Program.cs | 2 +- Tank/Tank/Properties/Resources.Designer.cs | 103 ++++++++ .../{Form1.resx => Properties/Resources.resx} | 13 + Tank/Tank/Resources/down-arrow.png | Bin 0 -> 281 bytes Tank/Tank/Resources/left-arrow.png | Bin 0 -> 265 bytes Tank/Tank/Resources/right-arrow.png | Bin 0 -> 224 bytes Tank/Tank/Resources/upper-arrow.png | Bin 0 -> 264 bytes Tank/Tank/Tank.csproj | 15 ++ 16 files changed, 747 insertions(+), 50 deletions(-) create mode 100644 Tank/Tank/Direction.cs create mode 100644 Tank/Tank/DrawingTank.cs create mode 100644 Tank/Tank/EntityTank.cs delete mode 100644 Tank/Tank/Form1.Designer.cs delete mode 100644 Tank/Tank/Form1.cs create mode 100644 Tank/Tank/FormTank.Designer.cs create mode 100644 Tank/Tank/FormTank.cs create mode 100644 Tank/Tank/FormTank.resx create mode 100644 Tank/Tank/Properties/Resources.Designer.cs rename Tank/Tank/{Form1.resx => Properties/Resources.resx} (83%) create mode 100644 Tank/Tank/Resources/down-arrow.png create mode 100644 Tank/Tank/Resources/left-arrow.png create mode 100644 Tank/Tank/Resources/right-arrow.png create mode 100644 Tank/Tank/Resources/upper-arrow.png diff --git a/Tank/Tank/Direction.cs b/Tank/Tank/Direction.cs new file mode 100644 index 0000000..96e9c9f --- /dev/null +++ b/Tank/Tank/Direction.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tank +{ + /// + /// Направление перемещения + /// + public enum Direction + { + /// + /// Вверх + /// + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 + } +} diff --git a/Tank/Tank/DrawingTank.cs b/Tank/Tank/DrawingTank.cs new file mode 100644 index 0000000..0bf57bc --- /dev/null +++ b/Tank/Tank/DrawingTank.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tank +{ + /// + /// Класс, отвечающий за прорисовку и перемещение объекта-сущности + /// + public class DrawningTank + { + /// + /// Класс-сущность + /// + public EntityTank? EntityTank { get; private set; } + /// + /// Ширина окна + /// + private int _pictureWidth = 900; + /// + /// Высота окна + /// + private int _pictureHeight = 500; + /// + /// Левая координата прорисовки автомобиля + /// + private int _startPosX; + /// + /// Верхняя кооридната прорисовки автомобиля + /// + private int _startPosY; + /// + /// Ширина прорисовки автомобиля + /// + private readonly int _tankWidth = 110; + /// + /// Высота прорисовки автомобиля + /// + private readonly int _tankHeight = 60; + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Цвет кузова + /// Дополнительный цвет + /// Признак наличия обвеса + /// Признак наличия антикрыла + /// Признак наличия гоночной полосы + /// Ширина картинки + /// Высота картинки + /// true - объект создан, false - проверка не пройдена, + /// нельзя создать объект в этих размерах + public bool Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool bodyKit, bool trunk, bool sportLine, int width, int height) + { + // TODO: проверки + if (width > _tankWidth && height > _tankHeight && speed > 0 && weight > 0) + { + _pictureWidth = width; + _pictureHeight = height; + EntityTank = new EntityTank(); + EntityTank.Init(speed, weight, bodyColor, additionalColor, + bodyKit, trunk, sportLine); + return true; + } + return false; + } + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + // проверки + if (x >= 0 && x + _tankWidth <= _pictureWidth && + y >= 0 && y + _tankHeight <= _pictureHeight) + { + _startPosX = x; + _startPosY = y; + } + } + /// + /// Изменение направления перемещения + /// + /// Направление + public void MoveTransport(Direction direction) + { + if (EntityTank == null) + { + return; + } + switch (direction) + { + //влево + case Direction.Left: + if (_startPosX - EntityTank.Step > 0) + { + _startPosX -= (int)EntityTank.Step; + } + break; + //вверх + case Direction.Up: + if (_startPosY - EntityTank.Step > 0) + { + _startPosY -= (int)EntityTank.Step; + } + break; + // вправо + case Direction.Right: + if (_startPosX + EntityTank.Step + _tankWidth < _pictureWidth) + { + _startPosX += (int)EntityTank.Step; + } + break; + //вниз + case Direction.Down: + if (_startPosY + EntityTank.Step + _tankHeight < _pictureHeight) + { + _startPosY += (int)EntityTank.Step; + } + break; + } + } + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntityTank == null) + { + return; + } + Pen pen = new(Color.Black); + Brush additionalBrush = new + SolidBrush(EntityTank.AdditionalColor); + // гусеница + Rectangle Caterpillar = new Rectangle(_startPosX + 2, _startPosY + 35, 16, 22); + float startAngle_Caterpillar = 90; + float sweepAngle_Caterpillar = 180; + g.DrawArc(pen, Caterpillar, startAngle_Caterpillar, sweepAngle_Caterpillar); + Rectangle Caterpillar2 = new Rectangle(_startPosX + 102, _startPosY + 35, 16, 22); + float startAngle_Caterpillar2 = 270; + float sweepAngle_Caterpillar2 = 180; + g.DrawArc(pen, Caterpillar2, startAngle_Caterpillar2, sweepAngle_Caterpillar2); + Point startPoint = new Point(_startPosX + 10, _startPosY + 58); + Point endPoint = new Point(_startPosX + 110, _startPosY + 58); + g.DrawLine(pen, startPoint, endPoint); + // колеса + Brush brBlack = new SolidBrush(Color.Black); + g.FillEllipse(brBlack, _startPosX + 95, _startPosY + 35, 20, 20); + g.FillEllipse(brBlack, _startPosX + 5, _startPosY + 35, 20, 20); + // колеса снизу поменьше + g.FillEllipse(brBlack, _startPosX + 25, _startPosY + 47, 10, 10); + g.FillEllipse(brBlack, _startPosX + 45, _startPosY + 47, 10, 10); + g.FillEllipse(brBlack, _startPosX + 65, _startPosY + 47, 10, 10); + g.FillEllipse(brBlack, _startPosX + 85, _startPosY + 47, 10, 10); + // колеса сверху + g.FillEllipse(brBlack, _startPosX + 35, _startPosY + 32, 10, 10); + g.FillEllipse(brBlack, _startPosX + 55, _startPosY + 32, 10, 10); + g.FillEllipse(brBlack, _startPosX + 75, _startPosY + 32, 10, 10); + + //кузов + Brush br = new SolidBrush(EntityTank.BodyColor); + g.FillRectangle(br, _startPosX + 5, _startPosY + 17, 110, 18); + g.FillRectangle(br, _startPosX + 30, _startPosY, 50, 15); + + // пулемет + g.FillRectangle(br, _startPosX + 80, _startPosY + 3, 25, 5); + + // зенитный пулемет на башне + g.FillRectangle(br, _startPosX + 40, _startPosY - 10, 20, 5); + + g.FillRectangle(brBlack, _startPosX + 50, _startPosY - 5, 5, 5); + g.FillRectangle(brBlack, _startPosX + 55, _startPosY - 10, 5, 10); + g.FillRectangle(brBlack, _startPosX + 52, _startPosY - 7, 3, 2); + + //выделяем рамкой весь танк + g.DrawRectangle(pen, _startPosX + 5, _startPosY + 17, 110, 18); + g.DrawRectangle(pen, _startPosX + 30, _startPosY, 50, 15); + g.DrawRectangle(pen, _startPosX + 80, _startPosY + 3, 25, 5); + g.DrawRectangle(pen, _startPosX + 40, _startPosY - 10, 20, 5); + + // обвесы + if (EntityTank.BodyKit) + { + Brush brAdd = new SolidBrush(EntityTank.AdditionalColor); + + g.FillRectangle(brAdd, _startPosX + 5, _startPosY + 17, 20, 18); + g.FillRectangle(brAdd, _startPosX + 95, _startPosY + 17, 20, 18); + g.DrawRectangle(pen, _startPosX + 5, _startPosY + 17, 20, 18); + g.DrawRectangle(pen, _startPosX + 95, _startPosY + 17, 20, 18); + + g.FillRectangle(brAdd, _startPosX + 100, _startPosY + 4, 5, 4); + + } + + //// спортивная линия + //if (EntityTank.SportLine) + //{ + // g.FillRectangle(additionalBrush, _startPosX + 75, + // _startPosY + 23, 25, 15); + // g.FillRectangle(additionalBrush, _startPosX + 35, + // _startPosY + 23, 35, 15); + // g.FillRectangle(additionalBrush, _startPosX + 10, + // _startPosY + 23, 20, 15); + //} + // багажник + if (EntityTank.Trunk) + { + g.FillRectangle(additionalBrush, _startPosX + 23, _startPosY + 4, 8, 10); + g.DrawRectangle(pen, _startPosX + 23, _startPosY + 4 , 8, 10); + } + + + } + } +} \ No newline at end of file diff --git a/Tank/Tank/EntityTank.cs b/Tank/Tank/EntityTank.cs new file mode 100644 index 0000000..35be974 --- /dev/null +++ b/Tank/Tank/EntityTank.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tank +{ + public class EntityTank + { + /// + /// Скорость + /// + 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 BodyKit { get; private set; } + /// + /// Признак (опция) наличия Багажника + /// + public bool Trunk { get; private set; } + /// + /// Признак (опция) наличия гоночной полосы + /// + public bool SportLine { get; private set; } + /// + /// Шаг перемещения танка + /// + public double Step => (double)Speed * 200 / Weight; + /// + /// Инициализация полей объекта-класса спортивного автомобиля + /// + /// Скорость + /// Вес Танка + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия обвеса + /// Признак наличия багажника + /// Признак наличия гоночной полосы + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool bodyKit, bool trunk, bool sportLine) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + BodyKit = bodyKit; + Trunk = trunk; + SportLine = sportLine; + } + } +} + diff --git a/Tank/Tank/Form1.Designer.cs b/Tank/Tank/Form1.Designer.cs deleted file mode 100644 index 237f42c..0000000 --- a/Tank/Tank/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace Tank -{ - 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/Tank/Tank/Form1.cs b/Tank/Tank/Form1.cs deleted file mode 100644 index db4ac92..0000000 --- a/Tank/Tank/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Tank -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/Tank/Tank/FormTank.Designer.cs b/Tank/Tank/FormTank.Designer.cs new file mode 100644 index 0000000..58c303f --- /dev/null +++ b/Tank/Tank/FormTank.Designer.cs @@ -0,0 +1,135 @@ +namespace Tank +{ + partial class FormTank + { + /// + /// 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.pictureBoxTank = new System.Windows.Forms.PictureBox(); + this.buttonCreate = new System.Windows.Forms.Button(); + this.buttonUp = new System.Windows.Forms.Button(); + this.buttonLeft = new System.Windows.Forms.Button(); + this.buttonDown = new System.Windows.Forms.Button(); + this.buttonRight = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxTank)).BeginInit(); + this.SuspendLayout(); + // + // pictureBoxTank + // + this.pictureBoxTank.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBoxTank.Location = new System.Drawing.Point(0, 0); + this.pictureBoxTank.Name = "pictureBoxTank"; + this.pictureBoxTank.Size = new System.Drawing.Size(884, 461); + this.pictureBoxTank.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxTank.TabIndex = 0; + this.pictureBoxTank.TabStop = false; + this.pictureBoxTank.Click += new System.EventHandler(this.pictureBox1_Click); + // + // buttonCreate + // + this.buttonCreate.Location = new System.Drawing.Point(26, 417); + this.buttonCreate.Name = "buttonCreate"; + this.buttonCreate.Size = new System.Drawing.Size(75, 23); + this.buttonCreate.TabIndex = 1; + this.buttonCreate.Text = "Создать"; + this.buttonCreate.UseVisualStyleBackColor = true; + this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click); + // + // buttonUp + // + this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonUp.BackgroundImage = global::Tank.Properties.Resources.upper_arrow; + this.buttonUp.Location = new System.Drawing.Point(806, 381); + this.buttonUp.Name = "buttonUp"; + this.buttonUp.Size = new System.Drawing.Size(30, 30); + this.buttonUp.TabIndex = 2; + this.buttonUp.UseVisualStyleBackColor = true; + this.buttonUp.Click += new System.EventHandler(this.buttonMove_Click); + // + // buttonLeft + // + this.buttonLeft.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonLeft.BackgroundImage = global::Tank.Properties.Resources.left_arrow; + this.buttonLeft.Location = new System.Drawing.Point(770, 417); + this.buttonLeft.Name = "buttonLeft"; + this.buttonLeft.Size = new System.Drawing.Size(30, 30); + this.buttonLeft.TabIndex = 3; + this.buttonLeft.UseVisualStyleBackColor = true; + this.buttonLeft.Click += new System.EventHandler(this.buttonMove_Click); + // + // buttonDown + // + this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonDown.BackgroundImage = global::Tank.Properties.Resources.down_arrow; + this.buttonDown.Location = new System.Drawing.Point(806, 417); + this.buttonDown.Name = "buttonDown"; + this.buttonDown.Size = new System.Drawing.Size(30, 30); + this.buttonDown.TabIndex = 4; + this.buttonDown.UseVisualStyleBackColor = true; + this.buttonDown.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::Tank.Properties.Resources.right_arrow; + this.buttonRight.Location = new System.Drawing.Point(842, 417); + this.buttonRight.Name = "buttonRight"; + this.buttonRight.Size = new System.Drawing.Size(30, 30); + this.buttonRight.TabIndex = 5; + this.buttonRight.UseVisualStyleBackColor = true; + this.buttonRight.Click += new System.EventHandler(this.buttonMove_Click); + // + // FormTank + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(884, 461); + this.Controls.Add(this.buttonRight); + this.Controls.Add(this.buttonDown); + this.Controls.Add(this.buttonLeft); + this.Controls.Add(this.buttonUp); + this.Controls.Add(this.buttonCreate); + this.Controls.Add(this.pictureBoxTank); + this.Name = "FormTank"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Tank"; + this.Load += new System.EventHandler(this.Form1_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxTank)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private PictureBox pictureBoxTank; + private Button buttonCreate; + private Button buttonUp; + private Button buttonLeft; + private Button buttonDown; + private Button buttonRight; + } +} \ No newline at end of file diff --git a/Tank/Tank/FormTank.cs b/Tank/Tank/FormTank.cs new file mode 100644 index 0000000..12f09f4 --- /dev/null +++ b/Tank/Tank/FormTank.cs @@ -0,0 +1,99 @@ +namespace Tank +{ + /// + /// " " + /// + public partial class FormTank : Form + { + /// + /// - + /// + private DrawningTank? _drawningTank; + /// + /// + /// + public FormTank() + { + InitializeComponent(); + } + /// + /// + /// + private void Draw() + { + if (_drawningTank == null) + { + return; + } + Bitmap bmp = new(pictureBoxTank.Width, + pictureBoxTank.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningTank.DrawTransport(gr); + pictureBoxTank.Image = bmp; + } + /// + /// "" + /// + /// + /// + private void Form1_Load(object sender, EventArgs e) + { + + + } + + private void pictureBox1_Click(object sender, EventArgs e) + { + + } + // Tank + private void buttonCreate_Click(object sender, EventArgs e) + { + Random random = new(); + _drawningTank = new DrawningTank(); + _drawningTank.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)), Convert.ToBoolean(random.Next(0, 2)), + + pictureBoxTank.Width, pictureBoxTank.Height); + _drawningTank.SetPosition(random.Next(10, 100), + random.Next(10, 100)); + Draw(); + } + /// + /// + /// + /// + /// + private void buttonMove_Click(object sender, EventArgs e) + { + if (_drawningTank == null) + { + return; + } + string name = ((Button)sender)?.Name ?? string.Empty; + switch (name) + { + case "buttonUp": + _drawningTank.MoveTransport(Direction.Up); + break; + case "buttonDown": + _drawningTank.MoveTransport(Direction.Down); + break; + case "buttonLeft": + _drawningTank.MoveTransport(Direction.Left); + break; + case "buttonRight": + _drawningTank.MoveTransport(Direction.Right); + break; + } + Draw(); + + } + } +} \ No newline at end of file diff --git a/Tank/Tank/FormTank.resx b/Tank/Tank/FormTank.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/Tank/Tank/FormTank.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/Tank/Tank/Program.cs b/Tank/Tank/Program.cs index 1b63cfc..3fbc0e1 100644 --- a/Tank/Tank/Program.cs +++ b/Tank/Tank/Program.cs @@ -11,7 +11,7 @@ namespace Tank // 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 FormTank()); } } } \ No newline at end of file diff --git a/Tank/Tank/Properties/Resources.Designer.cs b/Tank/Tank/Properties/Resources.Designer.cs new file mode 100644 index 0000000..8f7daa5 --- /dev/null +++ b/Tank/Tank/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace Tank.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("Tank.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_arrow { + get { + object obj = ResourceManager.GetObject("down-arrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap left_arrow { + get { + object obj = ResourceManager.GetObject("left-arrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap right_arrow { + get { + object obj = ResourceManager.GetObject("right-arrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap upper_arrow { + get { + object obj = ResourceManager.GetObject("upper-arrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Tank/Tank/Form1.resx b/Tank/Tank/Properties/Resources.resx similarity index 83% rename from Tank/Tank/Form1.resx rename to Tank/Tank/Properties/Resources.resx index 1af7de1..f4f3416 100644 --- a/Tank/Tank/Form1.resx +++ b/Tank/Tank/Properties/Resources.resx @@ -117,4 +117,17 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\down-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\left-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\right-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\upper-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Tank/Tank/Resources/down-arrow.png b/Tank/Tank/Resources/down-arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..9d67143363585e3432a1c1d203ab1b9c01976c50 GIT binary patch literal 281 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?3oArNM~bhqvgQ1G;; zi(^Q|oVQcGxehr9xZG!PJ=iKPkv~* zc9Kx^`?K)}4&8QsA++)Z=NaeL@TnCH#^;@Tgv2kJgjw7>ZYuCH(qz)4*DH2Ru$Mb* cz?1ZWvE`jXwNtr}CD2<8p00i_>zopr0H3RI6#xJL literal 0 HcmV?d00001 diff --git a/Tank/Tank/Resources/left-arrow.png b/Tank/Tank/Resources/left-arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..046470dd1579e2ce99e38e48677f93b995460f47 GIT binary patch literal 265 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?3oArNM~bhqvgP;j@W zi(^Q|oVU|#xtJVz+~TLPvK|zU=>9%IR50azvg(S67o|20$2W@PT-(3ZQ}D>v**$AM z9~3wt^4`$XaKfZXmnNm`XLx_4;d#{Y1DqBNvH2B@Ar5QPm(+f2is!A77T$Nb@L`vJ z!N<1uwhtDSGR)zvNq*OSE>?;q>{)3O*9}3RhUml3c6<6X?w%M??e!!o{lH-l9p`3y z&ohn7Cq`t%+o+y0?@ZL`y>m)cVfjVm7Hdm6Pg#bRdv?g zo_d7i&cBX%-Up_*C#c3a-842yRoo=xRhZ?*{Ndc)p1PG@KZIFQcRaRubCl_?gn{+W T1E1yqUB}?*>gTe~DWM4frWsJb literal 0 HcmV?d00001 diff --git a/Tank/Tank/Resources/upper-arrow.png b/Tank/Tank/Resources/upper-arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..0bc323d4a84a7434e950a34a05d6b0cd4e0a1c26 GIT binary patch literal 264 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz&H|6fVg?3oArNM~bhqvgP;i&0 zi(^Q|oVQbbxegf!xW#)r9MrC8xaTY)c*L7CcFT3a^G|}xyX^1!D7K_1`USOA8kl%4 zuawtak|5Fc@p(wlfHmbNxVQmhc^IrFsVWmFgSL${tdEQr8i?PC!r5 z-mCYs_=f9zf$C58UcX%ZI{$%y&F{@MtaofZ#Vy%)J(#?rbq3?~4jUeUwjGSzQ!Gv{ z%T?&_jecpHJ#SL+0#Aenable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file