diff --git a/Boats/Boats/Boats.csproj b/Boats/Boats/Boats.csproj
index b57c89e..13ee123 100644
--- a/Boats/Boats/Boats.csproj
+++ b/Boats/Boats/Boats.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/Boats/Boats/Direction.cs b/Boats/Boats/Direction.cs
new file mode 100644
index 0000000..36fa672
--- /dev/null
+++ b/Boats/Boats/Direction.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Boats
+{
+ ///
+ /// Направление перемещения
+ ///
+ internal enum Direction
+ {
+ Up = 1,
+ Down = 2,
+ Left = 3,
+ Right = 4
+ }
+}
diff --git a/Boats/Boats/DrawingBoat.cs b/Boats/Boats/DrawingBoat.cs
new file mode 100644
index 0000000..ca5142b
--- /dev/null
+++ b/Boats/Boats/DrawingBoat.cs
@@ -0,0 +1,169 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Boats
+{
+ ///
+ /// Класс, отвечающий за прорисовку и перемещение объекта-сущности
+ ///
+ internal class DrawingBoat
+ {
+ ///
+ /// Класс-сущность
+ ///
+ public EntityBoat Boat { private set; get; }
+ ///
+ /// Левая координата отрисовки лодки
+ ///
+ private float _startPosX;
+ ///
+ /// Верхняя кооридната отрисовки лодки
+ ///
+ private float _startPosY;
+ ///
+ /// Ширина окна отрисовки
+ ///
+ private int? _pictureWidth = null;
+ ///
+ /// Высота окна отрисовки
+ ///
+ private int? _pictureHeight = null;
+ ///
+ /// Ширина отрисовки лодки
+ ///
+ private readonly int _boatWidth = 100;
+ ///
+ /// Высота отрисовки лодки
+ ///
+ private readonly int _boatHeight = 40;
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес лодки
+ /// Цвет корпуса
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Boat = new EntityBoat();
+ Boat.Init(speed, weight, bodyColor);
+ }
+ ///
+ /// Установка позиции лодки
+ ///
+ /// Координата X
+ /// Координата Y
+ /// Ширина картинки
+ /// Высота картинки
+ public void SetPosition(int x, int y, int width, int height)
+ {
+ // Проверки, что новая позиция и размеры валидны
+ if (x > 0 && x < width - _boatWidth && y > 0 && y < height - _boatHeight)
+ {
+ _startPosX = x;
+ _startPosY = y;
+ _pictureWidth = width;
+ _pictureHeight = height;
+ }
+ }
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ public void MoveTransport(Direction direction)
+ {
+ if (!_pictureWidth.HasValue || !_pictureHeight.HasValue)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ // вправо
+ case Direction.Right:
+ if (_startPosX + _boatWidth + Boat.Step < _pictureWidth)
+ {
+ _startPosX += Boat.Step;
+ }
+ break;
+ //влево
+ case Direction.Left:
+ if (_startPosX - Boat.Step > 0)
+ {
+ _startPosX -= Boat.Step;
+ }
+ break;
+ //вверх
+ case Direction.Up:
+ if (_startPosY - Boat.Step > 0)
+ {
+ _startPosY -= Boat.Step;
+ }
+ break;
+ //вниз
+ case Direction.Down:
+ if (_startPosY + _boatHeight + Boat.Step < _pictureHeight)
+ {
+ _startPosY += Boat.Step;
+ }
+ break;
+ }
+ }
+ ///
+ /// Отрисовка лодки
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (_startPosX < 0 || _startPosY < 0
+ || !_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+
+ SolidBrush brush = new SolidBrush(Boat.BodyColor);
+
+ PointF[] bodyPoints = new PointF[5];
+ bodyPoints[0] = new PointF(_startPosX, _startPosY);
+ bodyPoints[1] = new PointF(_startPosX + _boatWidth - _boatWidth / 4, _startPosY);
+ bodyPoints[2] = new PointF(_startPosX + _boatWidth, _startPosY + _boatHeight / 2);
+ bodyPoints[3] = new PointF(_startPosX + _boatWidth - _boatWidth / 4, _startPosY + _boatHeight);
+ bodyPoints[4] = new PointF(_startPosX, _startPosY + _boatHeight);
+
+ // Отрисовка корпуса лодки
+ g.FillPolygon(brush, bodyPoints);
+ g.DrawPolygon(Pens.Black, bodyPoints);
+
+ // Отрисовка головы лодки
+ g.FillEllipse(Brushes.White, _startPosX + _boatWidth / 8, _startPosY + _boatHeight / 8,
+ _boatWidth / 2, _boatHeight - _boatHeight / 4);
+ g.DrawEllipse(Pens.Black, _startPosX + _boatWidth / 8, _startPosY + _boatHeight / 8,
+ _boatWidth / 2, _boatHeight - _boatHeight / 4);
+ }
+ ///
+ /// Смена границ формы отрисовки
+ ///
+ /// Ширина картинки
+ /// Высота картинки
+ public void ChangeBorders(int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureWidth <= _boatWidth || _pictureHeight <= _boatHeight)
+ {
+ _pictureWidth = null;
+ _pictureHeight = null;
+ return;
+ }
+ if (_startPosX + _boatWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth.Value - _boatWidth;
+ }
+ if (_startPosY + _boatHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight.Value - _boatHeight;
+ }
+ }
+ }
+}
diff --git a/Boats/Boats/EntityBoat.cs b/Boats/Boats/EntityBoat.cs
new file mode 100644
index 0000000..8e01db9
--- /dev/null
+++ b/Boats/Boats/EntityBoat.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Boats
+{
+ ///
+ /// Класс-сущность "Лодка"
+ ///
+ internal class EntityBoat
+ {
+ ///
+ /// Скорость
+ ///
+ public int Speed { get; private set; }
+ ///
+ /// Вес
+ ///
+ public float Weight { get; private set; }
+ ///
+ /// Цвет корпуса
+ ///
+ public Color BodyColor { get; private set; }
+ ///
+ /// Шаг перемещения лодки
+ ///
+ public float Step => Speed * 100 / Weight;
+ ///
+ /// Инициализация полей объекта-класса лодки
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Random rnd = new();
+ Speed = speed <= 0 ? rnd.Next(50, 150) : speed;
+ Weight = weight <= 0 ? rnd.Next(40, 70) : weight;
+ BodyColor = bodyColor;
+ }
+ }
+}
diff --git a/Boats/Boats/Form1.Designer.cs b/Boats/Boats/Form1.Designer.cs
deleted file mode 100644
index f99151f..0000000
--- a/Boats/Boats/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace Boats
-{
- 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/Boats/Boats/Form1.cs b/Boats/Boats/Form1.cs
deleted file mode 100644
index ff40f87..0000000
--- a/Boats/Boats/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace Boats
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/Boats/Boats/FormBoat.Designer.cs b/Boats/Boats/FormBoat.Designer.cs
new file mode 100644
index 0000000..d17c12d
--- /dev/null
+++ b/Boats/Boats/FormBoat.Designer.cs
@@ -0,0 +1,181 @@
+namespace Boats
+{
+ partial class FormBoat
+ {
+ ///
+ /// 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.pictureBoxBoat = new System.Windows.Forms.PictureBox();
+ this.statusStrip = new System.Windows.Forms.StatusStrip();
+ this.toolStripStatusLabelSpeed = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelWeight = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelBodyColor = new System.Windows.Forms.ToolStripStatusLabel();
+ this.ButtonCreate = new System.Windows.Forms.Button();
+ this.ButtonUp = new System.Windows.Forms.Button();
+ this.ButtonLeft = new System.Windows.Forms.Button();
+ this.ButtonRight = new System.Windows.Forms.Button();
+ this.ButtonDown = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBoat)).BeginInit();
+ this.statusStrip.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // pictureBoxBoat
+ //
+ this.pictureBoxBoat.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pictureBoxBoat.Location = new System.Drawing.Point(0, 0);
+ this.pictureBoxBoat.Name = "pictureBoxBoat";
+ this.pictureBoxBoat.Size = new System.Drawing.Size(800, 424);
+ this.pictureBoxBoat.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBoxBoat.TabIndex = 0;
+ this.pictureBoxBoat.TabStop = false;
+ this.pictureBoxBoat.Resize += new System.EventHandler(this.PictureBoxBoat_Resize);
+ //
+ // statusStrip
+ //
+ this.statusStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
+ this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabelSpeed,
+ this.toolStripStatusLabelWeight,
+ this.toolStripStatusLabelBodyColor});
+ this.statusStrip.Location = new System.Drawing.Point(0, 424);
+ this.statusStrip.Name = "statusStrip";
+ this.statusStrip.Size = new System.Drawing.Size(800, 26);
+ this.statusStrip.TabIndex = 1;
+ this.statusStrip.Text = "statusStrip1";
+ //
+ // toolStripStatusLabelSpeed
+ //
+ this.toolStripStatusLabelSpeed.Name = "toolStripStatusLabelSpeed";
+ this.toolStripStatusLabelSpeed.Size = new System.Drawing.Size(76, 20);
+ this.toolStripStatusLabelSpeed.Text = "Скорость:";
+ //
+ // toolStripStatusLabelWeight
+ //
+ this.toolStripStatusLabelWeight.Name = "toolStripStatusLabelWeight";
+ this.toolStripStatusLabelWeight.Size = new System.Drawing.Size(36, 20);
+ this.toolStripStatusLabelWeight.Text = "Вес:";
+ //
+ // toolStripStatusLabelBodyColor
+ //
+ this.toolStripStatusLabelBodyColor.Name = "toolStripStatusLabelBodyColor";
+ this.toolStripStatusLabelBodyColor.Size = new System.Drawing.Size(45, 20);
+ this.toolStripStatusLabelBodyColor.Text = "Цвет:";
+ //
+ // ButtonCreate
+ //
+ this.ButtonCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.ButtonCreate.Location = new System.Drawing.Point(12, 381);
+ this.ButtonCreate.Name = "ButtonCreate";
+ this.ButtonCreate.Size = new System.Drawing.Size(94, 29);
+ this.ButtonCreate.TabIndex = 2;
+ 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::Boats.Properties.Resources.arrow_up;
+ this.ButtonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.ButtonUp.Location = new System.Drawing.Point(710, 344);
+ this.ButtonUp.Name = "ButtonUp";
+ this.ButtonUp.Size = new System.Drawing.Size(30, 30);
+ this.ButtonUp.TabIndex = 3;
+ 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::Boats.Properties.Resources.arrow_left;
+ this.ButtonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.ButtonLeft.Location = new System.Drawing.Point(674, 380);
+ this.ButtonLeft.Name = "ButtonLeft";
+ this.ButtonLeft.Size = new System.Drawing.Size(30, 30);
+ this.ButtonLeft.TabIndex = 4;
+ this.ButtonLeft.UseVisualStyleBackColor = true;
+ this.ButtonLeft.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::Boats.Properties.Resources.arrow_right;
+ this.ButtonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.ButtonRight.Location = new System.Drawing.Point(746, 380);
+ 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);
+ //
+ // ButtonDown
+ //
+ this.ButtonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.ButtonDown.BackgroundImage = global::Boats.Properties.Resources.arrow_down;
+ this.ButtonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.ButtonDown.Location = new System.Drawing.Point(710, 380);
+ this.ButtonDown.Name = "ButtonDown";
+ this.ButtonDown.Size = new System.Drawing.Size(30, 30);
+ this.ButtonDown.TabIndex = 6;
+ this.ButtonDown.UseVisualStyleBackColor = true;
+ this.ButtonDown.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // FormBoat
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.ButtonDown);
+ this.Controls.Add(this.ButtonRight);
+ this.Controls.Add(this.ButtonLeft);
+ this.Controls.Add(this.ButtonUp);
+ this.Controls.Add(this.ButtonCreate);
+ this.Controls.Add(this.pictureBoxBoat);
+ this.Controls.Add(this.statusStrip);
+ this.Name = "FormBoat";
+ this.Text = "Лодка";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBoat)).EndInit();
+ this.statusStrip.ResumeLayout(false);
+ this.statusStrip.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxBoat;
+ private StatusStrip statusStrip;
+ private ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private ToolStripStatusLabel toolStripStatusLabelWeight;
+ private ToolStripStatusLabel toolStripStatusLabelBodyColor;
+ private Button ButtonCreate;
+ private Button ButtonUp;
+ private Button ButtonLeft;
+ private Button ButtonRight;
+ private Button ButtonDown;
+ }
+}
\ No newline at end of file
diff --git a/Boats/Boats/FormBoat.cs b/Boats/Boats/FormBoat.cs
new file mode 100644
index 0000000..44d3490
--- /dev/null
+++ b/Boats/Boats/FormBoat.cs
@@ -0,0 +1,93 @@
+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 Boats
+{
+ public partial class FormBoat : Form
+ {
+ private DrawingBoat _boat;
+ public FormBoat()
+ {
+ InitializeComponent();
+ }
+ ///
+ /// Метод прорисовки лодки
+ ///
+ private void Draw()
+ {
+ Bitmap bmp = new(pictureBoxBoat.Width, pictureBoxBoat.Height);
+ Graphics g = Graphics.FromImage(bmp);
+ _boat?.DrawTransport(g);
+ pictureBoxBoat.Image = bmp;
+ }
+ ///
+ /// Обработка нажатия кнопки "Создать"
+ ///
+ ///
+ ///
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random rnd = new();
+ _boat = new DrawingBoat();
+ _boat.Init(
+ rnd.Next(100, 300),
+ rnd.Next(1000, 2000),
+ Color.FromArgb(rnd.Next(0, 256),
+ rnd.Next(0, 256), rnd.Next(0, 256))
+ );
+ _boat.SetPosition(
+ rnd.Next(10, 100),
+ rnd.Next(10, 100),
+ pictureBoxBoat.Width,
+ pictureBoxBoat.Height
+ );
+ toolStripStatusLabelSpeed.Text = $"Скорость: {_boat.Boat.Speed}";
+ toolStripStatusLabelWeight.Text = $"Вес: {_boat.Boat.Weight}";
+ toolStripStatusLabelBodyColor.Text = $"Цвет: {_boat.Boat.BodyColor.Name}";
+ Draw();
+ }
+ ///
+ /// Изменение размеров формы
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ //получаем имя кнопки
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "ButtonUp":
+ _boat?.MoveTransport(Direction.Up);
+ break;
+ case "ButtonDown":
+ _boat?.MoveTransport(Direction.Down);
+ break;
+ case "ButtonLeft":
+ _boat?.MoveTransport(Direction.Left);
+ break;
+ case "ButtonRight":
+ _boat?.MoveTransport(Direction.Right);
+ break;
+ }
+ Draw();
+ }
+ ///
+ /// Изменение размеров формы
+ ///
+ ///
+ ///
+ private void PictureBoxBoat_Resize(object sender, EventArgs e)
+ {
+ _boat?.ChangeBorders(pictureBoxBoat.Width, pictureBoxBoat.Height);
+ Draw();
+ }
+ }
+}
diff --git a/Boats/Boats/FormBoat.resx b/Boats/Boats/FormBoat.resx
new file mode 100644
index 0000000..2c0949d
--- /dev/null
+++ b/Boats/Boats/FormBoat.resx
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/Boats/Boats/Program.cs b/Boats/Boats/Program.cs
index 545d706..e4a9a17 100644
--- a/Boats/Boats/Program.cs
+++ b/Boats/Boats/Program.cs
@@ -11,7 +11,7 @@ namespace Boats
// 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 FormBoat());
}
}
}
\ No newline at end of file
diff --git a/Boats/Boats/Properties/Resources.Designer.cs b/Boats/Boats/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..e4e49b7
--- /dev/null
+++ b/Boats/Boats/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Boats.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [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() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [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("Boats.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_down {
+ get {
+ object obj = ResourceManager.GetObject("arrow_down", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_left {
+ get {
+ object obj = ResourceManager.GetObject("arrow_left", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_right {
+ get {
+ object obj = ResourceManager.GetObject("arrow_right", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrow_up {
+ get {
+ object obj = ResourceManager.GetObject("arrow_up", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/Boats/Boats/Form1.resx b/Boats/Boats/Properties/Resources.resx
similarity index 83%
rename from Boats/Boats/Form1.resx
rename to Boats/Boats/Properties/Resources.resx
index 1af7de1..47aca23 100644
--- a/Boats/Boats/Form1.resx
+++ b/Boats/Boats/Properties/Resources.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrow_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrow_right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/Boats/Boats/Resources/arrow_down.png b/Boats/Boats/Resources/arrow_down.png
new file mode 100644
index 0000000..e487340
Binary files /dev/null and b/Boats/Boats/Resources/arrow_down.png differ
diff --git a/Boats/Boats/Resources/arrow_left.png b/Boats/Boats/Resources/arrow_left.png
new file mode 100644
index 0000000..c860bf9
Binary files /dev/null and b/Boats/Boats/Resources/arrow_left.png differ
diff --git a/Boats/Boats/Resources/arrow_right.png b/Boats/Boats/Resources/arrow_right.png
new file mode 100644
index 0000000..e8b6ca0
Binary files /dev/null and b/Boats/Boats/Resources/arrow_right.png differ
diff --git a/Boats/Boats/Resources/arrow_up.png b/Boats/Boats/Resources/arrow_up.png
new file mode 100644
index 0000000..d20dff5
Binary files /dev/null and b/Boats/Boats/Resources/arrow_up.png differ