From 0455a1fe3fa5e71bf8cb6e12d6af74bb7423ec92 Mon Sep 17 00:00:00 2001 From: sqdselo <147947144+sqdselo@users.noreply.github.com> Date: Sat, 17 Feb 2024 23:43:01 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=961?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HoistingCrane/HoistingCrane/DirectionType.cs | 23 ++ .../HoistingCrane/DrawningHoistingCrane.cs | 254 ++++++++++++++++++ .../HoistingCrane/EntityHoistingCrane.cs | 48 ++++ HoistingCrane/HoistingCrane/Form1.Designer.cs | 39 --- HoistingCrane/HoistingCrane/Form1.cs | 10 - .../FormHoistingCrane.Designer.cs | 130 +++++++++ .../HoistingCrane/FormHoistingCrane.cs | 65 +++++ .../HoistingCrane/FormHoistingCrane.resx | 120 +++++++++ .../HoistingCrane/HoistingCrane.csproj | 15 ++ HoistingCrane/HoistingCrane/Program.cs | 2 +- .../Properties/Resources.Designer.cs | 103 +++++++ .../HoistingCrane/Properties/Resources.resx | 133 +++++++++ .../Resources/arrow-down-sign-to-navigate.png | Bin 0 -> 2639 bytes .../HoistingCrane/Resources/left-arrow.png | Bin 0 -> 2646 bytes .../HoistingCrane/Resources/right-arrow.png | Bin 0 -> 2601 bytes .../HoistingCrane/Resources/up-arrow.png | Bin 0 -> 2634 bytes 16 files changed, 892 insertions(+), 50 deletions(-) create mode 100644 HoistingCrane/HoistingCrane/DirectionType.cs create mode 100644 HoistingCrane/HoistingCrane/DrawningHoistingCrane.cs create mode 100644 HoistingCrane/HoistingCrane/EntityHoistingCrane.cs delete mode 100644 HoistingCrane/HoistingCrane/Form1.Designer.cs delete mode 100644 HoistingCrane/HoistingCrane/Form1.cs create mode 100644 HoistingCrane/HoistingCrane/FormHoistingCrane.Designer.cs create mode 100644 HoistingCrane/HoistingCrane/FormHoistingCrane.cs create mode 100644 HoistingCrane/HoistingCrane/FormHoistingCrane.resx create mode 100644 HoistingCrane/HoistingCrane/Properties/Resources.Designer.cs create mode 100644 HoistingCrane/HoistingCrane/Properties/Resources.resx create mode 100644 HoistingCrane/HoistingCrane/Resources/arrow-down-sign-to-navigate.png create mode 100644 HoistingCrane/HoistingCrane/Resources/left-arrow.png create mode 100644 HoistingCrane/HoistingCrane/Resources/right-arrow.png create mode 100644 HoistingCrane/HoistingCrane/Resources/up-arrow.png diff --git a/HoistingCrane/HoistingCrane/DirectionType.cs b/HoistingCrane/HoistingCrane/DirectionType.cs new file mode 100644 index 0000000..ffff269 --- /dev/null +++ b/HoistingCrane/HoistingCrane/DirectionType.cs @@ -0,0 +1,23 @@ +namespace HoistingCrane; + +public enum DirectionType : byte //Создали не класс(class), а перечисление (enum) +{ + //Перечислим основные траектории движния нашего автомобиля. Сразу же зададим значения. + /// + /// Вверх1 + /// + Up = 1, + /// + /// Вниз + /// + Down, + /// + /// Влево + /// + Left, + /// + /// Вправо + /// + Right + +} \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/DrawningHoistingCrane.cs b/HoistingCrane/HoistingCrane/DrawningHoistingCrane.cs new file mode 100644 index 0000000..c4c834c --- /dev/null +++ b/HoistingCrane/HoistingCrane/DrawningHoistingCrane.cs @@ -0,0 +1,254 @@ + +namespace HoistingCrane; + +//В данном классе мы будем думать над полем игры, размерами персонажа, размерами объектов и т.д. +public class DrawningHoistingCrane +{ + /// + /// Класс - сущность + /// + public EntityHoistingCrane? EntityHoistingCrane { get; private set; } + + /// + /// Ширина окна + /// + private int? _pictureWidth; + + /// + /// Длина окна + /// + private int? _pictureHeight; + + /// + /// Стартовая позиция по х + /// + private int? _startPosX; + /// + /// Стартовая позиция по у + /// + private int? _startPosY; + + /// + /// Ширина прорисовки автомобиля + /// + private readonly int _drawingCarWidth = 80; + /// + /// Высота прорисовки автомобиля + /// + private readonly int _drawingCarHeight = 67; + + + public void Init(int speed, double weight, Color bodyColor, Color additionalColor) + { + EntityHoistingCrane = new EntityHoistingCrane(); + EntityHoistingCrane.Init(speed, weight, bodyColor, additionalColor); + _pictureWidth = null; + _pictureHeight = null; + _startPosX = null; + _startPosY = null; + + } + + + + + /// + /// Метод отрисовки игрового поля + /// + /// Ширина поля + /// Высота поля + /// + + public bool SetPictureSize(int width, int height) + { + if ((width < _drawingCarWidth) || (height < _drawingCarHeight)) + { + return false; + } + // TODO проверка, что объект "влезает" в размеры поля + // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена + _pictureWidth = width; + _pictureHeight = height; + + + + return true; + } + + + + /// + /// Установим позицию игрока + /// + /// Координата по Х + /// Координата по У + public void SetPosition(int x, int y) + { + //Если размеры были заданы, то присваиваем х и у, иначе выходим из метода + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + + if ((x + _drawingCarWidth > _pictureWidth) && (y + _drawingCarHeight > _pictureHeight)) + { + _startPosX = x - _drawingCarWidth; + _startPosY = y - _drawingCarHeight; + } + else if ((x + _drawingCarWidth <= _pictureWidth) && (y + _drawingCarHeight > _pictureHeight)) + { + _startPosX = x; + _startPosY = y - _drawingCarHeight; + } + else if ((x + _drawingCarWidth > _pictureWidth) && (y + _drawingCarHeight <= _pictureHeight)) + { + _startPosX = x - _drawingCarWidth; + _startPosY = y; + } + else + { + _startPosX = x; + _startPosY = y; + } + + + + + } + + /// + /// Перемещение машины + /// + /// + /// + public bool MoveTransport(DirectionType direction) + { + if (EntityHoistingCrane == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return false; + } + + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX.Value - EntityHoistingCrane.Step > 0) + { + _startPosX -= (int)EntityHoistingCrane.Step; + } + + return true; + //вверх + case DirectionType.Up: + if (_startPosY.Value - EntityHoistingCrane.Step > 0) + { + _startPosY -= (int)EntityHoistingCrane.Step; + } + return true; + + //вправо + case DirectionType.Right: + if (_startPosX.Value + EntityHoistingCrane.Step + _drawingCarWidth < _pictureWidth) + { + _startPosX += (int)EntityHoistingCrane.Step; + } + return true; + + //вниз + case DirectionType.Down: + if (_startPosY.Value + EntityHoistingCrane.Step + _drawingCarHeight < _pictureHeight) + { + _startPosY += (int)EntityHoistingCrane.Step; + } + return true; + + default: return false; + + + } + + + + + } + + /// + /// Метод отрисовки объекта + /// + /// + public void DrawTransport(Graphics gr) + { + if (EntityHoistingCrane == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return; + } + Pen pen = new Pen(Color.Black); + + + + + + + //границы + gr.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 25, 75, 20); + gr.DrawRectangle(pen, _startPosX.Value, _startPosY.Value, 25, 25); + gr.DrawRectangle(pen, _startPosX.Value + 4, _startPosY.Value + 4, 17, 17); + gr.DrawRectangle(pen, _startPosX.Value + 52, _startPosY.Value + 7, 6, 18); + gr.DrawEllipse(pen, _startPosX.Value - 5, _startPosY.Value + 45, 20, 20); + gr.DrawEllipse(pen, _startPosX.Value + 63, _startPosY.Value + 45, 20, 20); + gr.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 45, 68, 20); + gr.DrawEllipse(pen, _startPosX.Value - 1, _startPosY.Value + 46, 18, 18); + gr.DrawEllipse(pen, _startPosX.Value + 62, _startPosY.Value + 46, 18, 18); + gr.DrawEllipse(pen, _startPosX.Value + 20, _startPosY.Value + 53, 10, 10); + gr.DrawEllipse(pen, _startPosX.Value + 35, _startPosY.Value + 53, 10, 10); + gr.DrawEllipse(pen, _startPosX.Value + 50, _startPosY.Value + 53, 10, 10); + gr.DrawRectangle(pen, _startPosX.Value + 30, _startPosY.Value + 45, 4, 6); + gr.DrawRectangle(pen, _startPosX.Value + 45, _startPosY.Value + 45, 4, 6); + + + + + + + //корпус + Brush br = new SolidBrush(EntityHoistingCrane.BodyColor); + gr.FillRectangle(br, _startPosX.Value, _startPosY.Value + 25, 75, 25); + gr.FillRectangle(br, _startPosX.Value, _startPosY.Value, 25, 25); + + + + + //окно + Brush brq = new SolidBrush(EntityHoistingCrane.AdditionalColor); + gr.FillRectangle(brq, _startPosX.Value + 4, _startPosY.Value + 4, 17, 17); + + + + //выхлопная труба + Brush brBlack = new SolidBrush(Color.Black); + gr.FillRectangle(brBlack, _startPosX.Value + 52, _startPosY.Value + 7, 6, 18); + + + //гусеница + Brush brDarkGray = new SolidBrush(Color.DarkGray); + gr.FillEllipse(brDarkGray, _startPosX.Value - 5, _startPosY.Value + 45, 20, 20); + gr.FillEllipse(brDarkGray, _startPosX.Value + 63, _startPosY.Value + 45, 20, 20); + gr.FillRectangle(brDarkGray, _startPosX.Value + 5, _startPosY.Value + 45, 68, 20); + + + gr.FillEllipse(brq, _startPosX.Value - 1, _startPosY.Value + 46, 18, 18); + gr.FillEllipse(brq, _startPosX.Value + 62, _startPosY.Value + 46, 18, 18); + gr.FillEllipse(brq, _startPosX.Value + 20, _startPosY.Value + 53, 10, 10); + gr.FillEllipse(brq, _startPosX.Value + 35, _startPosY.Value + 53, 10, 10); + gr.FillEllipse(brq, _startPosX.Value + 50, _startPosY.Value + 53, 10, 10); + gr.FillRectangle(brq, _startPosX.Value + 30, _startPosY.Value + 45, 4, 6); + gr.FillRectangle(brq, _startPosX.Value + 45, _startPosY.Value + 45, 4, 6); + } + + + + + +} + + diff --git a/HoistingCrane/HoistingCrane/EntityHoistingCrane.cs b/HoistingCrane/HoistingCrane/EntityHoistingCrane.cs new file mode 100644 index 0000000..1be6030 --- /dev/null +++ b/HoistingCrane/HoistingCrane/EntityHoistingCrane.cs @@ -0,0 +1,48 @@ +namespace HoistingCrane; + + + +public class EntityHoistingCrane +{ + /// + /// , + /// + 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 double Step => Speed * 100 / Weight; + + + + + /// + /// + /// + /// + /// + /// + /// . + + + + + public void Init(int Speed, double Weight, Color BodyColor, Color AdditionalColor) + { + this.Speed = Speed; + this.Weight = Weight; + this.BodyColor = BodyColor; + this.AdditionalColor = AdditionalColor; + } + +} \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/Form1.Designer.cs b/HoistingCrane/HoistingCrane/Form1.Designer.cs deleted file mode 100644 index 32cdcd8..0000000 --- a/HoistingCrane/HoistingCrane/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace HoistingCrane -{ - 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/HoistingCrane/HoistingCrane/Form1.cs b/HoistingCrane/HoistingCrane/Form1.cs deleted file mode 100644 index 3820d41..0000000 --- a/HoistingCrane/HoistingCrane/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace HoistingCrane -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/FormHoistingCrane.Designer.cs b/HoistingCrane/HoistingCrane/FormHoistingCrane.Designer.cs new file mode 100644 index 0000000..3f8792b --- /dev/null +++ b/HoistingCrane/HoistingCrane/FormHoistingCrane.Designer.cs @@ -0,0 +1,130 @@ +using Microsoft.VisualBasic.ApplicationServices; +using System.ComponentModel.Design; +using System.Resources; + +namespace HoistingCrane +{ + partial class FormHoistingCrane + { + + private System.ComponentModel.IContainer components = null; + + + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + + + + private void InitializeComponent() + { + pictureBoxHoistingCrane = new PictureBox(); + buttonCreate = new Button(); + ButtonLeft = new Button(); + ButtonRight = new Button(); + ButtonUp = new Button(); + ButtonDown = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxHoistingCrane).BeginInit(); + SuspendLayout(); + // + // pictureBoxHoistingCrane + // + pictureBoxHoistingCrane.Dock = DockStyle.Fill; + pictureBoxHoistingCrane.Location = new Point(0, 0); + pictureBoxHoistingCrane.Name = "pictureBoxHoistingCrane"; + pictureBoxHoistingCrane.Size = new Size(818, 515); + pictureBoxHoistingCrane.TabIndex = 0; + pictureBoxHoistingCrane.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(0, 492); + 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.Left; + ButtonLeft.BackgroundImage = Properties.Resources.left_arrow; + ButtonLeft.BackgroundImageLayout = ImageLayout.Stretch; + ButtonLeft.Location = new Point(118, 404); + ButtonLeft.Name = "ButtonLeft"; + ButtonLeft.Size = new Size(40, 40); + ButtonLeft.TabIndex = 2; + ButtonLeft.UseVisualStyleBackColor = true; + ButtonLeft.Click += ButtonMove_Click; + // + // ButtonRight + // + ButtonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + ButtonRight.BackgroundImage = Properties.Resources.right_arrow; + ButtonRight.BackgroundImageLayout = ImageLayout.Stretch; + ButtonRight.Location = new Point(207, 404); + ButtonRight.Name = "ButtonRight"; + ButtonRight.Size = new Size(40, 40); + ButtonRight.TabIndex = 3; + ButtonRight.UseVisualStyleBackColor = true; + ButtonRight.Click += ButtonMove_Click; + // + // ButtonUp + // + ButtonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + ButtonUp.BackgroundImage = Properties.Resources.up_arrow; + ButtonUp.BackgroundImageLayout = ImageLayout.Stretch; + ButtonUp.Location = new Point(164, 367); + ButtonUp.Name = "ButtonUp"; + ButtonUp.Size = new Size(40, 40); + ButtonUp.TabIndex = 4; + ButtonUp.UseVisualStyleBackColor = true; + ButtonUp.Click += ButtonMove_Click; + // + // ButtonDown + // + ButtonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + ButtonDown.BackgroundImage = Properties.Resources.arrow_down_sign_to_navigate; + ButtonDown.BackgroundImageLayout = ImageLayout.Stretch; + ButtonDown.Location = new Point(164, 440); + ButtonDown.Name = "ButtonDown"; + ButtonDown.Size = new Size(40, 40); + ButtonDown.TabIndex = 5; + ButtonDown.UseVisualStyleBackColor = true; + ButtonDown.Click += ButtonMove_Click; + // + // FormHoistingCrane + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(818, 515); + Controls.Add(ButtonDown); + Controls.Add(ButtonUp); + Controls.Add(ButtonRight); + Controls.Add(ButtonLeft); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxHoistingCrane); + Name = "FormHoistingCrane"; + Text = "Подъемный кран"; + ((System.ComponentModel.ISupportInitialize)pictureBoxHoistingCrane).EndInit(); + ResumeLayout(false); + } + + // #endregion + + private PictureBox pictureBoxHoistingCrane; + private Button buttonCreate; + private Button ButtonLeft; + private Button ButtonRight; + private Button ButtonUp; + private Button ButtonDown; + } +} \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/FormHoistingCrane.cs b/HoistingCrane/HoistingCrane/FormHoistingCrane.cs new file mode 100644 index 0000000..3bf841b --- /dev/null +++ b/HoistingCrane/HoistingCrane/FormHoistingCrane.cs @@ -0,0 +1,65 @@ +namespace HoistingCrane +{ + public partial class FormHoistingCrane : Form + { + + private DrawningHoistingCrane? _drawningHoistingCrane; + + public FormHoistingCrane() + { + InitializeComponent(); + } + + private void Draw() + { + Bitmap bmp = new(pictureBoxHoistingCrane.Width, pictureBoxHoistingCrane.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningHoistingCrane?.DrawTransport(gr); + pictureBoxHoistingCrane.Image = bmp; + } + + private void ButtonCreate_Click(object sender, EventArgs e) + { + + Random rand = new(); + _drawningHoistingCrane = new DrawningHoistingCrane(); + _drawningHoistingCrane.Init(rand.Next(100, 300), rand.Next(1000, 3000), + Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, 256)), + Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, 256))); + _drawningHoistingCrane.SetPictureSize(pictureBoxHoistingCrane.Width, pictureBoxHoistingCrane.Height); + _drawningHoistingCrane.SetPosition(rand.Next(0, 100), rand.Next(0, 100)); + Draw(); + + } + + private void ButtonMove_Click(object sender, EventArgs e) + { + if (_drawningHoistingCrane == null) { return; } + String name = ((Button)sender)?.Name ?? string.Empty; + bool result = false; + switch (name) + { + case "ButtonUp": + result = _drawningHoistingCrane.MoveTransport(DirectionType.Up); + break; + case "ButtonDown": + result = _drawningHoistingCrane.MoveTransport(DirectionType.Down); + break; + case "ButtonRight": + result = _drawningHoistingCrane.MoveTransport(DirectionType.Right); + break; + case "ButtonLeft": + result = _drawningHoistingCrane.MoveTransport(DirectionType.Left); + break; + } + if (result) + { + Draw(); + + } + + } + + + } +} diff --git a/HoistingCrane/HoistingCrane/FormHoistingCrane.resx b/HoistingCrane/HoistingCrane/FormHoistingCrane.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/HoistingCrane/HoistingCrane/FormHoistingCrane.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/HoistingCrane/HoistingCrane/HoistingCrane.csproj b/HoistingCrane/HoistingCrane/HoistingCrane.csproj index e1a0735..244387d 100644 --- a/HoistingCrane/HoistingCrane/HoistingCrane.csproj +++ b/HoistingCrane/HoistingCrane/HoistingCrane.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/Program.cs b/HoistingCrane/HoistingCrane/Program.cs index 315551e..fbb985e 100644 --- a/HoistingCrane/HoistingCrane/Program.cs +++ b/HoistingCrane/HoistingCrane/Program.cs @@ -11,7 +11,7 @@ namespace HoistingCrane // 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 FormHoistingCrane()); } } } \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/Properties/Resources.Designer.cs b/HoistingCrane/HoistingCrane/Properties/Resources.Designer.cs new file mode 100644 index 0000000..0ea60d8 --- /dev/null +++ b/HoistingCrane/HoistingCrane/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace HoistingCrane.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("HoistingCrane.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 arrow_down_sign_to_navigate { + get { + object obj = ResourceManager.GetObject("arrow-down-sign-to-navigate", 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 up_arrow { + get { + object obj = ResourceManager.GetObject("up-arrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/HoistingCrane/HoistingCrane/Properties/Resources.resx b/HoistingCrane/HoistingCrane/Properties/Resources.resx new file mode 100644 index 0000000..965a03e --- /dev/null +++ b/HoistingCrane/HoistingCrane/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-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\up-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrow-down-sign-to-navigate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/HoistingCrane/HoistingCrane/Resources/arrow-down-sign-to-navigate.png b/HoistingCrane/HoistingCrane/Resources/arrow-down-sign-to-navigate.png new file mode 100644 index 0000000000000000000000000000000000000000..4619cb7280fb5e87d386b688cc93f6ce572004c2 GIT binary patch literal 2639 zcmeHITToM16iq@YNCaj|3!|V=tWp(-MHB^j3Iakw2@ipRls6bjDB&d$5~V&+D<~>e zK$wCEVu%w6kw_8*5hTh>Ni+dMloFJe5JDs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rnTHi+E02+-Y4l7|Y1@iILfSmBe-1%W z(0}?a=#~0p7@jT7HPmDBqP>V~BJUF7zb(puvB*x zY|AW1jjFfw9td+Ncry#)heSd5ka=2^eZk%#dEa&OLX^I4Qiq~(tGs2!3-jdr%f6pl zH!N`pLUu;eTmx^~rl6&-v?eb84YbbTraP3r!TuWEe0s)Xm8JEnxRGRL^0PK4F03kQ cB5CCaDC6Y2O`HZwNB?JhJp(*SmaO0LJI${AQvd(} literal 0 HcmV?d00001 diff --git a/HoistingCrane/HoistingCrane/Resources/right-arrow.png b/HoistingCrane/HoistingCrane/Resources/right-arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..f224f62ea8f78f76e3ec92b7bf56775ccbf7a4fa GIT binary patch literal 2601 zcmeHJSx{3~7{0kgWsy}u1*<7qqb$m3C6+ZZL_jG)Q2|2)q!9KXOA(^IDOzv^$F-OV z0U}aBiWNb&01irVVHY8QQ50ezF`z(#iOKEZp{>sJL9K7?ow@(_pa1**?L3`h-d=9H z+NRnN1nGLXyY7G>7`QN`sR5wr%E}f18VN2QJ2f>m2ZqQ`!BH#D-9G_>^k}m`ChJ(* zeh^%eNb*bcp@$_V2gip($;ruUBVwZxLW1K$*V5x@EUAMj1Yu^pJ$I5&6b1VKzyI0| zFzWKW!On$=JG^`#46K2jJ5N(fTW7wWzJa09LSvIfOH9p{EysPi@+9u{=ZeKrtN&qz|I5dnF9u*xEOOH=xAk4JG=@~~)W@eo| zf8pm#EH)>%;Fsc(tEFYvu9sI--mI#wsjcJHH#9ai-@E^ywWG7E`{ASBKK{Uyp=ZyB zM}#j#qhn&pOX>K;>&dBUnSADrLitvuJ{KQ_K+xO?57*5*5A?qrd~>mN&eG;rOI(9H zazah>Na7<43tU-Sw|my!+p)!L#UAf91*fbc&Ya6mZ*Sn2CAHZkc;RV6WnGT*(Bu#7 zgm#{sLEm=2rT++n!%#gwl%dQ#RIh4Hy5GOYD#G`w#EFUqpl$d<`)&7x(e{+XlC$>g zRl(f^y-N+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