diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Direction.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Direction.cs
new file mode 100644
index 0000000..08bdb41
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Direction.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
+{
+ internal enum Direction
+ {
+ Up = 1,
+ Down = 2,
+ Left = 3,
+ Right = 4
+ }
+}
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/DrawningBoat.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/DrawningBoat.cs
new file mode 100644
index 0000000..707c66d
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/DrawningBoat.cs
@@ -0,0 +1,163 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
+{
+ internal class DrawningBoat
+ {
+ ///
+ /// Класс-сущность
+ ///
+ public EntityBoat Boat { private set; get; }
+ ///
+ /// Левая координата отрисовки автомобиля
+ ///
+ private float _startPosX;
+ ///
+ /// Верхняя кооридната отрисовки автомобиля
+ ///
+ private float _startPosY;
+ ///
+ /// Ширина окна отрисовки
+ ///
+ private int? _pictureWidth = null;
+ ///
+ /// Высота окна отрисовки
+ ///
+ private int? _pictureHeight = null;
+ ///
+ /// Ширина отрисовки автомобиля
+ ///
+ private readonly int _boatWidth = 170;
+ ///
+ /// Высота отрисовки автомобиля
+ ///
+ private readonly int _boatHeight = 60;
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес автомобиля
+ /// Цвет кузова
+ 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 + _boatWidth <= width && y + _boatHeight <= height && x > 0 && y > 0)
+ {
+ _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;
+ }
+ Pen pen = new(Color.Black, 3);
+ Brush br = new SolidBrush(Boat?.BodyColor ?? Color.Black);
+ Brush brBrown = new SolidBrush(Color.Brown);
+ // Внешняя часть лодки
+ g.DrawLine(pen, _startPosX, _startPosY, _startPosX + 120, _startPosY + 0);
+ g.DrawLine(pen, _startPosX + 120, _startPosY, _startPosX + 170, _startPosY + 30);
+ g.DrawLine(pen, _startPosX + 170, _startPosY + 30, _startPosX + 120, _startPosY + 60);
+ g.DrawLine(pen, _startPosX + 120, _startPosY + 60, _startPosX, _startPosY + 60);
+ g.DrawLine(pen, _startPosX, _startPosY + 60, _startPosX, _startPosY);
+ PointF pt1 = new PointF(_startPosX, _startPosY);
+ PointF pt2 = new PointF(_startPosX + 120, _startPosY);
+ PointF pt3 = new PointF(_startPosX + 170, _startPosY + 30);
+ PointF pt4 = new PointF(_startPosX + 120, _startPosY + 60);
+ PointF pt5 = new PointF(_startPosX, _startPosY + 60);
+ g.FillPolygon(br, new PointF[] { pt1, pt2, pt3, pt4, pt5});
+ // Внутренняя часть лодки
+ g.FillEllipse(brBrown, _startPosX + 10, _startPosY + 10, 110, 40);
+ }
+ ///
+ /// Смена границ формы отрисовки
+ ///
+ /// Ширина картинки
+ /// Высота картинки
+ 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/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/EntityBoat.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/EntityBoat.cs
new file mode 100644
index 0000000..2e68e8e
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/EntityBoat.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
+{
+ 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(5, 30) : speed;
+ Weight = weight <= 0 ? rnd.Next(30, 100) : weight;
+ BodyColor = bodyColor;
+ }
+
+ }
+}
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.Designer.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.Designer.cs
deleted file mode 100644
index 074d147..0000000
--- a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
-{
- 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/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.cs
deleted file mode 100644
index 026ec68..0000000
--- a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.Designer.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.Designer.cs
new file mode 100644
index 0000000..5210f43
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.Designer.cs
@@ -0,0 +1,183 @@
+namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
+{
+ 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.statusStrip1 = 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.pictureBoxBoat = new System.Windows.Forms.PictureBox();
+ this.buttonCreate = new System.Windows.Forms.Button();
+ this.buttonRight = new System.Windows.Forms.Button();
+ this.buttonLeft = new System.Windows.Forms.Button();
+ this.buttonUp = new System.Windows.Forms.Button();
+ this.buttonDown = new System.Windows.Forms.Button();
+ this.statusStrip1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBoat)).BeginInit();
+ this.SuspendLayout();
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabelSpeed,
+ this.toolStripStatusLabelWeight,
+ this.toolStripStatusLabelBodyColor});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 427);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(882, 26);
+ this.statusStrip1.TabIndex = 0;
+ this.statusStrip1.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 = "Цвет:";
+ //
+ // pictureBoxBoat
+ //
+ this.pictureBoxBoat.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
+ 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(882, 427);
+ this.pictureBoxBoat.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBoxBoat.TabIndex = 1;
+ this.pictureBoxBoat.TabStop = false;
+ this.pictureBoxBoat.SizeChanged += new System.EventHandler(this.PictureBoxBoat_Resize);
+ this.pictureBoxBoat.Resize += new System.EventHandler(this.PictureBoxBoat_Resize);
+ //
+ // 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, 385);
+ 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);
+ //
+ // buttonRight
+ //
+ this.buttonRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonRight.BackgroundImage = global::PIbd_22_Kalyshev_Y_V_MotorBoat_Base.Properties.Resources.right;
+ this.buttonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonRight.Location = new System.Drawing.Point(820, 374);
+ this.buttonRight.Name = "buttonRight";
+ this.buttonRight.Size = new System.Drawing.Size(40, 40);
+ this.buttonRight.TabIndex = 3;
+ this.buttonRight.UseVisualStyleBackColor = true;
+ this.buttonRight.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::PIbd_22_Kalyshev_Y_V_MotorBoat_Base.Properties.Resources.left;
+ this.buttonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonLeft.Location = new System.Drawing.Point(728, 374);
+ this.buttonLeft.Name = "buttonLeft";
+ this.buttonLeft.Size = new System.Drawing.Size(40, 40);
+ this.buttonLeft.TabIndex = 4;
+ this.buttonLeft.UseVisualStyleBackColor = true;
+ this.buttonLeft.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // buttonUp
+ //
+ this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonUp.BackgroundImage = global::PIbd_22_Kalyshev_Y_V_MotorBoat_Base.Properties.Resources.up;
+ this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonUp.Location = new System.Drawing.Point(774, 328);
+ this.buttonUp.Name = "buttonUp";
+ this.buttonUp.Size = new System.Drawing.Size(40, 40);
+ this.buttonUp.TabIndex = 5;
+ this.buttonUp.UseVisualStyleBackColor = true;
+ this.buttonUp.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::PIbd_22_Kalyshev_Y_V_MotorBoat_Base.Properties.Resources.down;
+ this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.buttonDown.Location = new System.Drawing.Point(774, 374);
+ this.buttonDown.Name = "buttonDown";
+ this.buttonDown.Size = new System.Drawing.Size(40, 40);
+ 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(882, 453);
+ this.Controls.Add(this.buttonDown);
+ this.Controls.Add(this.buttonUp);
+ this.Controls.Add(this.buttonLeft);
+ this.Controls.Add(this.buttonRight);
+ this.Controls.Add(this.buttonCreate);
+ this.Controls.Add(this.pictureBoxBoat);
+ this.Controls.Add(this.statusStrip1);
+ this.Name = "FormBoat";
+ this.Text = "Лодка";
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBoat)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private StatusStrip statusStrip1;
+ private ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private ToolStripStatusLabel toolStripStatusLabelWeight;
+ private ToolStripStatusLabel toolStripStatusLabelBodyColor;
+ private PictureBox pictureBoxBoat;
+ private Button buttonCreate;
+ private Button buttonRight;
+ private Button buttonLeft;
+ private Button buttonUp;
+ private Button buttonDown;
+ }
+}
\ No newline at end of file
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.cs
new file mode 100644
index 0000000..496674d
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.cs
@@ -0,0 +1,74 @@
+namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
+{
+ public partial class FormBoat : Form
+ {
+ private DrawningBoat _boat;
+
+ public FormBoat()
+ {
+ InitializeComponent();
+ }
+ ///
+ ///
+ ///
+ private void Draw()
+ {
+ Bitmap bmp = new(pictureBoxBoat.Width, pictureBoxBoat.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _boat?.DrawTransport(gr);
+ pictureBoxBoat.Image = bmp;
+ }
+ ///
+ /// ""
+ ///
+ ///
+ ///
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random rnd = new();
+ _boat = new DrawningBoat();
+ _boat.Init(rnd.Next(5, 30), rnd.Next(30, 100), 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();
+ }
+ }
+}
\ No newline at end of file
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.resx b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/FormBoat.resx
new file mode 100644
index 0000000..5cb320f
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/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/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Program.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Program.cs
index 04b7db4..b7776a0 100644
--- a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Program.cs
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Program.cs
@@ -11,7 +11,7 @@ namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base
// 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/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Properties/Resources.Designer.cs b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..321842f
--- /dev/null
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace PIbd_22_Kalyshev_Y_V_MotorBoat_Base.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("PIbd_22_Kalyshev_Y_V_MotorBoat_Base.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 {
+ get {
+ object obj = ResourceManager.GetObject("down", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap left {
+ get {
+ object obj = ResourceManager.GetObject("left", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap right {
+ get {
+ object obj = ResourceManager.GetObject("right", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap up {
+ get {
+ object obj = ResourceManager.GetObject("up", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.resx b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Properties/Resources.resx
similarity index 83%
rename from PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.resx
rename to PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Properties/Resources.resx
index 1af7de1..a9cc51f 100644
--- a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Form1.resx
+++ b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Properties/Resources.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\right1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\down1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\up1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/down1.png b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/down1.png
new file mode 100644
index 0000000..8f79043
Binary files /dev/null and b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/down1.png differ
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/left1.png b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/left1.png
new file mode 100644
index 0000000..3addd5f
Binary files /dev/null and b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/left1.png differ
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/right1.png b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/right1.png
new file mode 100644
index 0000000..8cca371
Binary files /dev/null and b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/right1.png differ
diff --git a/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/up1.png b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/up1.png
new file mode 100644
index 0000000..447ee1e
Binary files /dev/null and b/PIbd-22_Kalyshev_Y_V_MotorBoat_Base/Resources/up1.png differ