diff --git a/ProjectLiner/ProjectLiner/DirectionType.cs b/ProjectLiner/ProjectLiner/DirectionType.cs
new file mode 100644
index 0000000..ae64161
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/DirectionType.cs
@@ -0,0 +1,23 @@
+namespace ProjectLiner;
+///
+/// Направление передвижения
+///
+public enum DirectionType
+{
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+ ///
+ /// Влево
+ ///
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+ Right = 4
+}
\ No newline at end of file
diff --git a/ProjectLiner/ProjectLiner/DrawningLiner.cs b/ProjectLiner/ProjectLiner/DrawningLiner.cs
new file mode 100644
index 0000000..c4accb4
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/DrawningLiner.cs
@@ -0,0 +1,223 @@
+namespace ProjectLiner;
+///
+/// Класс-прорисовка сущности "Лайнер"
+///
+public class DrawningLiner
+{
+ ///
+ /// Класс-сущность "Лайнер"
+ ///
+ public EntityLiner? EntityLiner { get; private set; }
+ ///
+ /// Ширина окна
+ ///
+ private int? _pictureWidth;
+ ///
+ /// Высота окна
+ ///
+ private int? _pictureHeight;
+ ///
+ /// Левая координата прорисовки сущности "Лайнер"
+ ///
+ private int? _startPosX;
+ ///
+ /// Верхнаяя координата прорисовки сущности "Лайнер"
+ ///
+ private int? _startPosY;
+ ///
+ /// Ширина прорисовки сущности "Лайнер"
+ ///
+ private readonly int _drawningLinerWidth = 150;
+ ///
+ /// Высота сущности "Лайнер"
+ ///
+ private readonly int _drawningLinerHeight = 65;
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Наличие второй палубы
+ /// Наличие басейна
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool secondDeck, bool pool)
+ {
+ EntityLiner = new EntityLiner();
+ EntityLiner.Init(speed, weight, bodyColor, additionalColor, secondDeck, pool);
+ _pictureWidth = null;
+ _pictureHeight = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+ ///
+ /// Установка границ поля
+ ///
+ /// Ширина поля
+ /// Высота поля
+ /// true - границы задданы, false - проверка не пройдена, нельзя разместить объект в этих размерах
+ public bool SetPictureSize(int width, int height)
+ {
+ if (height < _drawningLinerHeight || width < _drawningLinerWidth)
+ {
+ return false;
+ }
+ _pictureWidth = width;
+ _pictureHeight = height;
+ return true;
+ }
+ ///
+ /// Установка позиции
+ ///
+ /// Координата Х
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+ if (x < 0)
+ {
+ x = 0;
+ }
+ if (x + _drawningLinerWidth > _pictureWidth.Value)
+ {
+ x = _pictureWidth.Value - _drawningLinerWidth;
+ }
+ if (y < 0)
+ {
+ y = 0;
+ }
+ if (y + _drawningLinerHeight > _pictureHeight.Value)
+ {
+ y = _pictureHeight.Value - _drawningLinerHeight;
+ }
+ _startPosX = x;
+ _startPosY = y;
+ }
+
+ ///
+ /// Изменения направления перемещения
+ ///
+ /// Направление
+ /// true - перемещение выполнено, false - перемещение невозможно
+ public bool MoveTransport(DirectionType direction)
+ {
+ if (EntityLiner == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return false;
+ }
+ switch (direction)
+ {
+ // Влево
+ case DirectionType.Left:
+ if (_startPosX.Value - EntityLiner.Step > 0)
+ {
+ _startPosX -= (int)EntityLiner.Step;
+ }
+ return true;
+ // Вверх
+ case DirectionType.Up:
+ if (_startPosY.Value - EntityLiner.Step > 0)
+ {
+ _startPosY -= (int)EntityLiner.Step;
+ }
+ return true;
+ // Вправо
+ case DirectionType.Right:
+
+ if (_startPosX.Value + _drawningLinerWidth + EntityLiner.Step < _pictureWidth.Value)
+ {
+ _startPosX += (int)EntityLiner.Step;
+ }
+ return true;
+ // Вниз
+ case DirectionType.Down:
+ if (_startPosY.Value + _drawningLinerHeight + EntityLiner.Step < _pictureHeight.Value)
+ {
+ _startPosY += (int)EntityLiner.Step;
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityLiner == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return;
+ }
+ Pen pen = new(Color.Black, 2);
+ Brush br = new SolidBrush(EntityLiner.BodyColor);
+ Brush additionalBrush = new SolidBrush(EntityLiner.AdditionalColor);
+ // Вторая палуба
+ if (EntityLiner.SecondDeck)
+ {
+ g.FillPolygon(additionalBrush, new[]
+ {
+ new Point(_startPosX.Value + 20, _startPosY.Value + 15),
+ new Point(_startPosX.Value + 30, _startPosY.Value + 0),
+ new Point(_startPosX.Value + 95, _startPosY.Value + 0),
+ new Point(_startPosX.Value + 100, _startPosY.Value + 15)
+ });
+ g.DrawPolygon(pen, new[]
+ {
+ new Point(_startPosX.Value + 20, _startPosY.Value + 15),
+ new Point(_startPosX.Value + 30, _startPosY.Value + 0),
+ new Point(_startPosX.Value + 95, _startPosY.Value + 0),
+ new Point(_startPosX.Value + 100, _startPosY.Value + 15)
+ });
+
+ }
+ // Бассейн
+ if (EntityLiner.Pool)
+ {
+ g.FillRectangle(additionalBrush, _startPosX.Value + 110, _startPosY.Value + 25, 30, 5);
+ g.DrawRectangle(pen, _startPosX.Value + 110, _startPosY.Value + 25, 30, 5);
+ g.DrawArc(pen, _startPosX.Value + 135, _startPosY.Value + 20, 8, 8, 180, 180);
+ g.DrawLine(pen, _startPosX.Value + 143, _startPosY.Value + 25, _startPosX.Value + 143, _startPosY.Value + 30);
+ }
+ // Корпус и палуба Лайнера
+ g.FillPolygon(br, new[]
+ {
+ new Point(_startPosX.Value + 0, _startPosY.Value + 30),
+ new Point(_startPosX.Value + 150, _startPosY.Value + 30),
+ new Point(_startPosX.Value + 120, _startPosY.Value + 65),
+ new Point(_startPosX.Value + 30, _startPosY.Value + 65)
+ });
+ g.FillPolygon(br, new[]
+ {
+ new Point(_startPosX.Value + 5, _startPosY.Value + 30),
+ new Point(_startPosX.Value + 15, _startPosY.Value + 15),
+ new Point(_startPosX.Value + 100, _startPosY.Value + 15),
+ new Point(_startPosX.Value + 105, _startPosY.Value + 30)
+ });
+
+ g.DrawPolygon(pen, new[]
+ {
+ new Point(_startPosX.Value + 0, _startPosY.Value + 30),
+ new Point(_startPosX.Value + 150, _startPosY.Value + 30),
+ new Point(_startPosX.Value + 120, _startPosY.Value + 65),
+ new Point(_startPosX.Value + 30, _startPosY.Value + 65)
+ });
+ g.DrawPolygon(pen, new[]
+ {
+ new Point(_startPosX.Value + 5, _startPosY.Value + 30),
+ new Point(_startPosX.Value + 15, _startPosY.Value + 15),
+ new Point(_startPosX.Value + 100, _startPosY.Value + 15),
+ new Point(_startPosX.Value + 105, _startPosY.Value + 30)
+ });
+ // Якорь
+ g.DrawLine(pen, _startPosX.Value + 30, _startPosY.Value + 33, _startPosX.Value + 30, _startPosY.Value + 45);
+ g.DrawLine(pen, _startPosX.Value + 27, _startPosY.Value + 36, _startPosX.Value + 33, _startPosY.Value + 36);
+ g.DrawLine(pen, _startPosX.Value + 25, _startPosY.Value + 40, _startPosX.Value + 30, _startPosY.Value + 45);
+ g.DrawLine(pen, _startPosX.Value + 30, _startPosY.Value + 45, _startPosX.Value + 35, _startPosY.Value + 40);
+ }
+}
+
diff --git a/ProjectLiner/ProjectLiner/EntityLiner.cs b/ProjectLiner/ProjectLiner/EntityLiner.cs
new file mode 100644
index 0000000..8cd9294
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/EntityLiner.cs
@@ -0,0 +1,53 @@
+namespace ProjectLiner;
+///
+/// Класс-сущность "Лайнер"
+///
+public class EntityLiner
+{
+ ///
+ /// Скорость
+ ///
+ 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 SecondDeck { get; private set; }
+ ///
+ /// Наличие бассейна
+ ///
+ public bool Pool { get; private set; }
+ ///
+ /// Шаг перемещения сущности "Лайнер"
+ ///
+ public double Step => Speed * 100 / Weight;
+ ///
+ /// Инициализация полей объекта класса "Лайнер"
+ ///
+ /// Скорость
+ /// Вес
+ /// Основой цвет
+ /// Дополнительный цвет
+ /// Наличие второй палубы
+ /// Наличие бассейна
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool secondDeck, bool pool)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ SecondDeck = secondDeck;
+ Pool = pool;
+ }
+}
diff --git a/ProjectLiner/ProjectLiner/Form1.Designer.cs b/ProjectLiner/ProjectLiner/Form1.Designer.cs
deleted file mode 100644
index 10a56d5..0000000
--- a/ProjectLiner/ProjectLiner/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace ProjectLiner
-{
- 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/ProjectLiner/ProjectLiner/Form1.cs b/ProjectLiner/ProjectLiner/Form1.cs
deleted file mode 100644
index baabe7e..0000000
--- a/ProjectLiner/ProjectLiner/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace ProjectLiner
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/ProjectLiner/ProjectLiner/FormLiner.Designer.cs b/ProjectLiner/ProjectLiner/FormLiner.Designer.cs
new file mode 100644
index 0000000..bb87f5d
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/FormLiner.Designer.cs
@@ -0,0 +1,135 @@
+namespace ProjectLiner
+{
+ partial class FormLiner
+ {
+ ///
+ /// 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()
+ {
+ pictureBoxLiner = new PictureBox();
+ buttonCreate = new Button();
+ buttonRight = new Button();
+ buttonDown = new Button();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxLiner).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxLiner
+ //
+ pictureBoxLiner.Dock = DockStyle.Fill;
+ pictureBoxLiner.Location = new Point(0, 0);
+ pictureBoxLiner.Name = "pictureBoxLiner";
+ pictureBoxLiner.Size = new Size(884, 461);
+ pictureBoxLiner.TabIndex = 0;
+ pictureBoxLiner.TabStop = false;
+ //
+ // buttonCreate
+ //
+ buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreate.Location = new Point(12, 426);
+ buttonCreate.Name = "buttonCreate";
+ buttonCreate.Size = new Size(75, 23);
+ buttonCreate.TabIndex = 1;
+ buttonCreate.Text = "Создать";
+ buttonCreate.UseVisualStyleBackColor = true;
+ buttonCreate.Click += ButtonCreate_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.buttonRight;
+ buttonRight.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonRight.Location = new Point(842, 419);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(30, 30);
+ buttonRight.TabIndex = 2;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.buttonDown;
+ buttonDown.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonDown.Location = new Point(806, 419);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(30, 30);
+ buttonDown.TabIndex = 3;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.buttonLeft;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonLeft.Location = new Point(770, 419);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(30, 30);
+ buttonLeft.TabIndex = 4;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonUp.BackgroundImage = Properties.Resources.buttonUp;
+ buttonUp.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonUp.Location = new Point(806, 383);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(30, 30);
+ buttonUp.TabIndex = 5;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // FormLiner
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(884, 461);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonCreate);
+ Controls.Add(pictureBoxLiner);
+ Name = "FormLiner";
+ StartPosition = FormStartPosition.CenterScreen;
+ Text = "Лайнер";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxLiner).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxLiner;
+ private Button buttonCreate;
+ private Button buttonRight;
+ private Button buttonDown;
+ private Button buttonLeft;
+ private Button buttonUp;
+ }
+}
\ No newline at end of file
diff --git a/ProjectLiner/ProjectLiner/FormLiner.cs b/ProjectLiner/ProjectLiner/FormLiner.cs
new file mode 100644
index 0000000..e2d10f7
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/FormLiner.cs
@@ -0,0 +1,84 @@
+namespace ProjectLiner;
+///
+/// Форма работы с объектом "Лайнер"
+///
+public partial class FormLiner : Form
+{
+ ///
+ /// Поле-объект для прорисовки объекта
+ ///
+ private DrawningLiner? _drawningLiner;
+ ///
+ /// Конструктор формы
+ ///
+ public FormLiner()
+ {
+ InitializeComponent();
+ }
+ ///
+ /// Метод прорисовки Лайнера
+ ///
+ private void Draw()
+ {
+ if (_drawningLiner == null)
+ {
+ return;
+ }
+ Bitmap bmp = new(pictureBoxLiner.Width,
+ pictureBoxLiner.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningLiner.DrawTransport(gr);
+ pictureBoxLiner.Image = bmp;
+ }
+ ///
+ /// Обработка нажатия кнопки "Создать"
+ ///
+ ///
+ ///
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningLiner = new DrawningLiner();
+ _drawningLiner.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)));
+ _drawningLiner.SetPictureSize(pictureBoxLiner.Width, pictureBoxLiner.Height);
+ _drawningLiner.SetPosition(random.Next(10, 100), random.Next(10, 100));
+
+ Draw();
+ }
+ ///
+ /// Обработка нажатия кнопок навигации движения
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningLiner == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ bool result = false;
+ switch (name)
+ {
+ case "buttonUp":
+ result = _drawningLiner.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ result = _drawningLiner.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ result = _drawningLiner.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ result = _drawningLiner.MoveTransport(DirectionType.Right);
+ break;
+ }
+ if (result)
+ {
+ Draw();
+ }
+ }
+}
diff --git a/ProjectLiner/ProjectLiner/FormLiner.resx b/ProjectLiner/ProjectLiner/FormLiner.resx
new file mode 100644
index 0000000..af32865
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/FormLiner.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/ProjectLiner/ProjectLiner/Program.cs b/ProjectLiner/ProjectLiner/Program.cs
index 6a14f7d..b3dc92e 100644
--- a/ProjectLiner/ProjectLiner/Program.cs
+++ b/ProjectLiner/ProjectLiner/Program.cs
@@ -11,7 +11,7 @@ namespace ProjectLiner
// 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 FormLiner());
}
}
}
\ No newline at end of file
diff --git a/ProjectLiner/ProjectLiner/ProjectLiner.csproj b/ProjectLiner/ProjectLiner/ProjectLiner.csproj
index e1a0735..244387d 100644
--- a/ProjectLiner/ProjectLiner/ProjectLiner.csproj
+++ b/ProjectLiner/ProjectLiner/ProjectLiner.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/ProjectLiner/ProjectLiner/Properties/Resources.Designer.cs b/ProjectLiner/ProjectLiner/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..1c163a4
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectLiner.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("ProjectLiner.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 buttonDown {
+ get {
+ object obj = ResourceManager.GetObject("buttonDown", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap buttonLeft {
+ get {
+ object obj = ResourceManager.GetObject("buttonLeft", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap buttonRight {
+ get {
+ object obj = ResourceManager.GetObject("buttonRight", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap buttonUp {
+ get {
+ object obj = ResourceManager.GetObject("buttonUp", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ProjectLiner/ProjectLiner/Properties/Resources.resx b/ProjectLiner/ProjectLiner/Properties/Resources.resx
new file mode 100644
index 0000000..12b9209
--- /dev/null
+++ b/ProjectLiner/ProjectLiner/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\buttonDown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\buttonLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\buttonRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\buttonUp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectLiner/ProjectLiner/Resources/buttonDown.png b/ProjectLiner/ProjectLiner/Resources/buttonDown.png
new file mode 100644
index 0000000..5696df8
Binary files /dev/null and b/ProjectLiner/ProjectLiner/Resources/buttonDown.png differ
diff --git a/ProjectLiner/ProjectLiner/Resources/buttonLeft.png b/ProjectLiner/ProjectLiner/Resources/buttonLeft.png
new file mode 100644
index 0000000..d87912c
Binary files /dev/null and b/ProjectLiner/ProjectLiner/Resources/buttonLeft.png differ
diff --git a/ProjectLiner/ProjectLiner/Resources/buttonRight.png b/ProjectLiner/ProjectLiner/Resources/buttonRight.png
new file mode 100644
index 0000000..34c5776
Binary files /dev/null and b/ProjectLiner/ProjectLiner/Resources/buttonRight.png differ
diff --git a/ProjectLiner/ProjectLiner/Resources/buttonUp.png b/ProjectLiner/ProjectLiner/Resources/buttonUp.png
new file mode 100644
index 0000000..4c33114
Binary files /dev/null and b/ProjectLiner/ProjectLiner/Resources/buttonUp.png differ