diff --git a/MotorBoat/MotorBoat/Direction.cs b/MotorBoat/MotorBoat/Direction.cs
new file mode 100644
index 0000000..b843d16
--- /dev/null
+++ b/MotorBoat/MotorBoat/Direction.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MotorBoat
+{
+ ///
+ /// Направление перемещения
+ ///
+ public enum DirectionType
+ {
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+
+ ///
+ /// Влево
+ ///
+ Left = 3,
+
+ ///
+ /// Вправо
+ ///
+ Right = 4
+ }
+}
diff --git a/MotorBoat/MotorBoat/DrawningMotorBoat.cs b/MotorBoat/MotorBoat/DrawningMotorBoat.cs
new file mode 100644
index 0000000..9f570eb
--- /dev/null
+++ b/MotorBoat/MotorBoat/DrawningMotorBoat.cs
@@ -0,0 +1,187 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MotorBoat
+{
+ /// .
+ /// Класс, отвечающий за прорисовку и перемещение объекта-сущности
+ ///
+ public class DrawningMotorboat
+ {
+ ///
+ /// Класс-сущность
+ ///
+ public EntityMotorBoat? EntityMotorBoat { get; private set; }
+
+ ///
+ /// Ширина окна
+ ///
+ private int _pictureWight = 800;
+
+ ///
+ /// Высота окна
+ ///
+ private int _pictureHeight = 450;
+
+ ///
+ /// Левая координата прорисовки катера
+ ///
+ private int _startPosX = 0;
+
+ ///
+ /// Правая координата прорисовки катера
+ ///
+ private int _startPosY = 0;
+
+ ///
+ /// Ширина прорисовки катера
+ ///
+ private readonly int _boatWight = 165;
+
+ ///
+ /// Высота прорисовки катера
+ ///
+ private readonly int _boatHeight = 80;
+
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес
+ /// Цвет корпуса
+ /// Дополнительный цвет
+ /// Признак наличия двигателя в корме
+ /// Признак наличия защитного стекла впереди
+ /// Ширина картинки
+ /// Выслота картинки
+ /// true - объект создан, false - проверка не пройдена, нельзя создать объект в этих размерах
+ public bool Init(int speed, double weight, Color bodyColor, Color additionalColor, bool engine, bool glass, int width, int height)
+ {
+ if (width <= _boatWight || height <= _boatHeight)
+ return false;
+ _pictureWight = width;
+ _pictureHeight = height;
+ EntityMotorBoat = new EntityMotorBoat();
+ EntityMotorBoat.Init(speed, weight, bodyColor, additionalColor, engine, glass);
+ return true;
+ }
+
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (EntityMotorBoat == null) return;
+ while (x + _boatWight > _pictureWight)
+ {
+ x -= (int)EntityMotorBoat.Step;
+ }
+ while (x < 0)
+ {
+ x += (int)EntityMotorBoat.Step;
+ }
+ while (y + _boatHeight > _pictureHeight)
+ {
+ y -= (int)EntityMotorBoat.Step;
+ }
+ while (y < 0)
+ {
+ y += (int)EntityMotorBoat.Step;
+ }
+ _startPosX = x;
+ _startPosY = y;
+ }
+
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ public void MoveTransport(DirectionType direction)
+ {
+ if (EntityMotorBoat == null)
+ return;
+
+ switch (direction)
+ {
+ //влево
+ case DirectionType.Left:
+ if (_startPosX - EntityMotorBoat.Step > 0)
+ {
+ _startPosX -= (int)EntityMotorBoat.Step;
+ }
+ break;
+
+ //вверх
+ case DirectionType.Up:
+ if (_startPosY - EntityMotorBoat.Step > 0)
+ {
+ _startPosY -= (int)EntityMotorBoat.Step;
+ }
+ break;
+
+ //вправо
+ case DirectionType.Right:
+ if (_startPosX + _boatWight + EntityMotorBoat.Step < _pictureWight)
+ {
+ _startPosX += (int)EntityMotorBoat.Step;
+ }
+ break;
+
+ //вниз
+ case DirectionType.Down:
+ if (_startPosY + _boatHeight + EntityMotorBoat.Step < _pictureHeight)
+ {
+ _startPosY += (int)EntityMotorBoat.Step;
+ }
+ break;
+ }
+ }
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityMotorBoat == null)
+ {
+ return;
+ }
+ Pen pen = new(Color.Black, 1);
+ Brush mainBrush = new SolidBrush(EntityMotorBoat.BodyColor);
+
+ // корпус
+ Point[] hull = new Point[]
+ {
+ new Point(_startPosX + 5, _startPosY + 0),
+ new Point(_startPosX + 120, _startPosY + 0),
+ new Point(_startPosX + 160, _startPosY + 35),
+ new Point(_startPosX + 120, _startPosY + 70),
+ new Point(_startPosX + 5, _startPosY + 70),
+ };
+ g.FillPolygon(mainBrush, hull);
+ g.DrawPolygon(pen, hull);
+
+ // стекло впереди
+ Brush glassBrush = new SolidBrush(Color.LightBlue);
+ g.FillEllipse(glassBrush, _startPosX + 20, _startPosY + 15, 100, 40);
+ g.DrawEllipse(pen, _startPosX + 20, _startPosY + 15, 100, 40);
+
+ // осн часть
+ Brush blockBrush = new SolidBrush(EntityMotorBoat.AdditionalColor);
+ g.FillRectangle(blockBrush, _startPosX + 20, _startPosY + 15, 80, 40);
+ g.DrawRectangle(pen, _startPosX + 20, _startPosY + 15, 80, 40);
+
+ // двигатель
+ Brush engineBrush = new
+ SolidBrush(EntityMotorBoat.AdditionalColor);
+ g.FillRectangle(engineBrush, _startPosX + 0, _startPosY + 10, 5, 50);
+ g.DrawRectangle(pen, _startPosX + 0, _startPosY + 10, 5, 50);
+ }
+ }
+}
diff --git a/MotorBoat/MotorBoat/EntityMotorBoat.cs b/MotorBoat/MotorBoat/EntityMotorBoat.cs
new file mode 100644
index 0000000..05ce1ab
--- /dev/null
+++ b/MotorBoat/MotorBoat/EntityMotorBoat.cs
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MotorBoat
+{
+ public class EntityMotorBoat
+ {
+ ///
+ /// Скорость
+ ///
+ 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 Engine { get; private set; }
+
+ ///
+ /// Признак (опция) наличия защитного стекла спереди
+ ///
+ public bool Glass { get; private set; }
+
+ ///
+ /// Шаг перемещения моторной лодки
+ ///
+ public double Step => (double)Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса моторной лодки
+ ///
+ /// Скорость
+ /// Вес катера
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия двигателя в корме
+ /// Признак наличия защитного стекла впереди
+
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool engine, bool glass)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ Engine = engine;
+ Glass = glass;
+ }
+ }
+}
diff --git a/MotorBoat/MotorBoat/Form1.Designer.cs b/MotorBoat/MotorBoat/Form1.Designer.cs
deleted file mode 100644
index 4b86bb4..0000000
--- a/MotorBoat/MotorBoat/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace MotorBoat
-{
- 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/MotorBoat/MotorBoat/Form1.cs b/MotorBoat/MotorBoat/Form1.cs
deleted file mode 100644
index 240dc5e..0000000
--- a/MotorBoat/MotorBoat/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace MotorBoat
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/FormMotorBoat.Designer.cs b/MotorBoat/MotorBoat/FormMotorBoat.Designer.cs
new file mode 100644
index 0000000..4cccdbb
--- /dev/null
+++ b/MotorBoat/MotorBoat/FormMotorBoat.Designer.cs
@@ -0,0 +1,137 @@
+namespace MotorBoat
+{
+ partial class FormMotorBoat
+ {
+ ///
+ /// 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()
+ {
+ pictureBoxMotorBoat = new PictureBox();
+ buttonCreate = new Button();
+ buttonLeft = new Button();
+ buttonRight = new Button();
+ buttonUp = new Button();
+ buttonDown = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxMotorBoat).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxMotorBoat
+ //
+ pictureBoxMotorBoat.Dock = DockStyle.Fill;
+ pictureBoxMotorBoat.Location = new Point(0, 0);
+ pictureBoxMotorBoat.Name = "pictureBoxMotorBoat";
+ pictureBoxMotorBoat.Size = new Size(884, 461);
+ pictureBoxMotorBoat.SizeMode = PictureBoxSizeMode.AutoSize;
+ pictureBoxMotorBoat.TabIndex = 0;
+ pictureBoxMotorBoat.TabStop = false;
+ //
+ // buttonCreate
+ //
+ buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreate.Location = new Point(12, 409);
+ buttonCreate.Name = "buttonCreate";
+ buttonCreate.Size = new Size(90, 40);
+ buttonCreate.TabIndex = 1;
+ buttonCreate.Text = "Создать";
+ buttonCreate.UseVisualStyleBackColor = true;
+ buttonCreate.Click += ButtonCreate_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.left1;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonLeft.Location = new Point(768, 397);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(30, 30);
+ buttonLeft.TabIndex = 2;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.right1;
+ buttonRight.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonRight.Location = new Point(840, 397);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(30, 30);
+ buttonRight.TabIndex = 3;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonUp.BackgroundImage = Properties.Resources.up;
+ buttonUp.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonUp.Location = new Point(804, 377);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(30, 30);
+ buttonUp.TabIndex = 4;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.down1;
+ buttonDown.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonDown.Location = new Point(804, 417);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(30, 30);
+ buttonDown.TabIndex = 5;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // FormMotorBoat
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(884, 461);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonCreate);
+ Controls.Add(pictureBoxMotorBoat);
+ Name = "FormMotorBoat";
+ StartPosition = FormStartPosition.CenterScreen;
+ Text = "FormMotorBoat";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxMotorBoat).EndInit();
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxMotorBoat;
+ private Button buttonCreate;
+ private Button buttonLeft;
+ private Button buttonRight;
+ private Button buttonUp;
+ private Button buttonDown;
+ }
+}
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/FormMotorBoat.cs b/MotorBoat/MotorBoat/FormMotorBoat.cs
new file mode 100644
index 0000000..ddd8d4d
--- /dev/null
+++ b/MotorBoat/MotorBoat/FormMotorBoat.cs
@@ -0,0 +1,81 @@
+namespace MotorBoat
+{
+ public partial class FormMotorBoat : Form
+ {
+ ///
+ /// -
+ ///
+ private DrawningMotorboat? _drawningMotorboat;
+
+ ///
+ ///
+ ///
+ public FormMotorBoat()
+ {
+ InitializeComponent();
+ }
+
+ ///
+ ///
+ ///
+ private void Draw()
+ {
+ if (_drawningMotorboat == null)
+ {
+ return;
+ }
+ Bitmap bmp = new(pictureBoxMotorBoat.Width, pictureBoxMotorBoat.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningMotorboat.DrawTransport(gr);
+ pictureBoxMotorBoat.Image = bmp;
+ }
+
+ ///
+ /// ""
+ ///
+ ///
+ ///
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningMotorboat = new DrawningMotorboat();
+ _drawningMotorboat.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)),
+ pictureBoxMotorBoat.Width, pictureBoxMotorBoat.Height);
+ _drawningMotorboat.SetPosition(random.Next(10, 100), random.Next(10, 100));
+ Draw();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningMotorboat == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _drawningMotorboat.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ _drawningMotorboat.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ _drawningMotorboat.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ _drawningMotorboat.MoveTransport(DirectionType.Right);
+ break;
+ }
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/FormMotorBoat.resx b/MotorBoat/MotorBoat/FormMotorBoat.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/MotorBoat/MotorBoat/FormMotorBoat.resx
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/MotorBoat.csproj b/MotorBoat/MotorBoat/MotorBoat.csproj
index b57c89e..13ee123 100644
--- a/MotorBoat/MotorBoat/MotorBoat.csproj
+++ b/MotorBoat/MotorBoat/MotorBoat.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/Program.cs b/MotorBoat/MotorBoat/Program.cs
index 974f0ab..83aea91 100644
--- a/MotorBoat/MotorBoat/Program.cs
+++ b/MotorBoat/MotorBoat/Program.cs
@@ -11,7 +11,7 @@ namespace MotorBoat
// 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 FormMotorBoat());
}
}
}
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/Properties/Resources.Designer.cs b/MotorBoat/MotorBoat/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..6c60ce5
--- /dev/null
+++ b/MotorBoat/MotorBoat/Properties/Resources.Designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace MotorBoat.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("MotorBoat.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 down1 {
+ get {
+ object obj = ResourceManager.GetObject("down1", 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 left1 {
+ get {
+ object obj = ResourceManager.GetObject("left1", 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 right1 {
+ get {
+ object obj = ResourceManager.GetObject("right1", 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));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap up1 {
+ get {
+ object obj = ResourceManager.GetObject("up1", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/MotorBoat/MotorBoat/Properties/Resources.resx b/MotorBoat/MotorBoat/Properties/Resources.resx
new file mode 100644
index 0000000..27af1de
--- /dev/null
+++ b/MotorBoat/MotorBoat/Properties/Resources.resx
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+ ..\left.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\up.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\right.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\left.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\right.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\up.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/MotorBoat/MotorBoat/down.jpg b/MotorBoat/MotorBoat/down.jpg
new file mode 100644
index 0000000..da16419
Binary files /dev/null and b/MotorBoat/MotorBoat/down.jpg differ
diff --git a/MotorBoat/MotorBoat/down.png b/MotorBoat/MotorBoat/down.png
new file mode 100644
index 0000000..c49c770
Binary files /dev/null and b/MotorBoat/MotorBoat/down.png differ
diff --git a/MotorBoat/MotorBoat/left.jpg b/MotorBoat/MotorBoat/left.jpg
new file mode 100644
index 0000000..d446d61
Binary files /dev/null and b/MotorBoat/MotorBoat/left.jpg differ
diff --git a/MotorBoat/MotorBoat/left.png b/MotorBoat/MotorBoat/left.png
new file mode 100644
index 0000000..42e3bd8
Binary files /dev/null and b/MotorBoat/MotorBoat/left.png differ
diff --git a/MotorBoat/MotorBoat/right.jpg b/MotorBoat/MotorBoat/right.jpg
new file mode 100644
index 0000000..f8887d7
Binary files /dev/null and b/MotorBoat/MotorBoat/right.jpg differ
diff --git a/MotorBoat/MotorBoat/right.png b/MotorBoat/MotorBoat/right.png
new file mode 100644
index 0000000..5da511f
Binary files /dev/null and b/MotorBoat/MotorBoat/right.png differ
diff --git a/MotorBoat/MotorBoat/up.jpg b/MotorBoat/MotorBoat/up.jpg
new file mode 100644
index 0000000..0f136e5
Binary files /dev/null and b/MotorBoat/MotorBoat/up.jpg differ
diff --git a/MotorBoat/MotorBoat/up.png b/MotorBoat/MotorBoat/up.png
new file mode 100644
index 0000000..9b45905
Binary files /dev/null and b/MotorBoat/MotorBoat/up.png differ