diff --git a/Cruiser/Cruiser.csproj b/Cruiser/Cruiser.csproj
index b57c89e..13ee123 100644
--- a/Cruiser/Cruiser.csproj
+++ b/Cruiser/Cruiser.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/Cruiser/Cruiser.sln b/Cruiser/Cruiser.sln
index 9d9e847..9da485e 100644
--- a/Cruiser/Cruiser.sln
+++ b/Cruiser/Cruiser.sln
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cruiser", "Cruiser.csproj", "{756E194C-4DC4-4A91-A93C-3E903FABED76}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cruiser", "Cruiser.csproj", "{4B55C43E-7DDF-4DA6-A186-7244085169A8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,15 +11,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {756E194C-4DC4-4A91-A93C-3E903FABED76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {756E194C-4DC4-4A91-A93C-3E903FABED76}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {756E194C-4DC4-4A91-A93C-3E903FABED76}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {756E194C-4DC4-4A91-A93C-3E903FABED76}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4B55C43E-7DDF-4DA6-A186-7244085169A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4B55C43E-7DDF-4DA6-A186-7244085169A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4B55C43E-7DDF-4DA6-A186-7244085169A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4B55C43E-7DDF-4DA6-A186-7244085169A8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {034E99D7-3DC1-49BB-86DA-3314CC18DE34}
+ SolutionGuid = {45C16C6A-A71C-4A65-8704-F821496C7C82}
EndGlobalSection
EndGlobal
diff --git a/Cruiser/Direction.cs b/Cruiser/Direction.cs
new file mode 100644
index 0000000..5e21cb7
--- /dev/null
+++ b/Cruiser/Direction.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Cruiser
+{
+ public enum Direction
+ {
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+ ///
+ /// Влево
+ ///
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+ Right = 4
+ }
+}
diff --git a/Cruiser/DrawingCruiser.cs b/Cruiser/DrawingCruiser.cs
new file mode 100644
index 0000000..cec146d
--- /dev/null
+++ b/Cruiser/DrawingCruiser.cs
@@ -0,0 +1,209 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Cruiser
+{
+ public class DrawingCruiser
+ {
+ ///
+ /// Класс-сущность
+ ///
+ public EntityCruiser? EntityCruiser { get; private set; }
+ ///
+ /// Ширина окна
+ ///
+ private int _pictureWidth;
+ ///
+ /// Высота окна
+ ///
+ private int _pictureHeight;
+ ///
+ /// Левая координата прорисовки Крейсера
+ ///
+ private static int _startPosX;
+ ///
+ /// Верхняя кооридната прорисовки Крейсера
+ ///
+ private static int _startPosY;
+ ///
+ /// Ширина прорисовки Крейсера
+ ///
+ private readonly int _cruiserWidth = 150;
+ ///
+ /// Высота прорисовки Крейсера
+ ///
+ private readonly int _cruiserHeight = 60;
+ ///
+ /// Цвет для палубы
+ ///
+ public Color PalubaColor { get; private set; }
+ ///
+ /// Цвет для элементов
+ ///
+ public Color ElementsColor { get; private set; }
+ ///
+ /// Цвет для дополнений
+ ///
+ public Color DopColor { get; private set; }
+ ///
+ /// Шахты
+ ///
+ public bool Mines { get; private set; }
+ ///
+ /// Верт. площадка
+ ///
+ public bool HelicopPad { get; private set; }
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес автомобиля
+ /// Основной цвет
+ /// Элементов цвет
+ /// Дополнений цвет
+ /// Признак наличия ракетных шахт
+ /// Признак наличия вертолётной площадки
+ /// Ширина картинки
+ /// Высота картинки
+ /// true - объект создан, false - проверка не пройдена,
+ ///нельзя создать объект в этих размерах
+ public bool Init(int speed, double weight, Color bodyColor, Color secColor, Color dopColor, bool rocketMines, bool helipad, int width, int height)
+ {
+ if (width < _cruiserWidth || height < _cruiserHeight)
+ {
+ _pictureHeight = _cruiserHeight + 100;
+ _pictureWidth = _cruiserWidth + 100;
+ }
+ _pictureWidth = width;
+ _pictureHeight = height;
+ PalubaColor = bodyColor;
+ ElementsColor = secColor;
+ DopColor = dopColor;
+ Mines = rocketMines;
+ HelicopPad = helipad;
+ EntityCruiser = new EntityCruiser();
+ EntityCruiser.Init(speed, weight, bodyColor, secColor, rocketMines, helipad);
+ return true;
+ }
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ public void SetPosition(int x, int y)
+ {
+ if (x < 0 || y < 0)
+ {
+ return;
+ }
+ if (x > _pictureWidth || y > _pictureHeight)
+ {
+ return;
+ }
+ _startPosX = x;
+ _startPosY = y;
+ }
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ public void MoveTransport(Direction direction)
+ {
+ if (EntityCruiser == null)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ //влево
+ case Direction.Left:
+ if (_startPosX - EntityCruiser.Step > 0)
+ {
+ _startPosX -= (int)EntityCruiser.Step;
+ }
+ break;
+ //вверх
+ case Direction.Up:
+ if (_startPosY - EntityCruiser.Step > 0)
+ {
+ _startPosY -= (int)EntityCruiser.Step;
+ }
+ break;
+ // вправо
+ case Direction.Right:
+ if (_startPosX + EntityCruiser.Step < _pictureWidth - _cruiserWidth)
+ {
+ _startPosX += (int)EntityCruiser.Step;
+ }
+ break;
+ //вниз
+ case Direction.Down:
+ if (_startPosY + EntityCruiser.Step < _pictureHeight - _cruiserHeight)
+ {
+ _startPosY += (int)EntityCruiser.Step;
+ }
+ break;
+ }
+ }
+
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityCruiser == null)
+ {
+ return;
+ }
+ // палуба
+ Point[] Paluba = new Point[5]
+ {
+ new Point(_startPosX + 10,_startPosY),
+ new Point(_startPosX + 110,_startPosY),
+ new Point(_startPosX + 160,_startPosY + 30),
+ new Point(_startPosX + 110,_startPosY + 60),
+ new Point(_startPosX + 10,_startPosY + 60)
+ };
+ Brush brush = new SolidBrush(PalubaColor);
+ g.FillPolygon(brush, Paluba);
+ // элементы
+ Point[] Elements = new Point[8]
+ {
+ new Point(_startPosX + 50,_startPosY + 20),
+ new Point(_startPosX + 70,_startPosY + 20),
+ new Point(_startPosX + 70,_startPosY + 10),
+ new Point(_startPosX + 90,_startPosY + 10),
+ new Point(_startPosX + 90,_startPosY + 50),
+ new Point(_startPosX + 70,_startPosY + 50),
+ new Point(_startPosX + 70,_startPosY + 40),
+ new Point(_startPosX + 50,_startPosY + 40),
+ };
+ Brush brushElem = new SolidBrush(ElementsColor);
+ g.FillPolygon(brushElem, Elements);
+ g.FillEllipse(brushElem, _startPosX + 100, _startPosY + 20, 20, 20);
+ // турбины
+ Brush Turbins = new SolidBrush(Color.Black);
+ g.FillRectangle(Turbins, _startPosX, _startPosY + 10, 10, 20);
+ g.FillRectangle(Turbins, _startPosX, _startPosY + 35, 10, 20);
+ // шахты
+ if (Mines)
+ {
+ Brush DopBrush = new SolidBrush(DopColor);
+ g.FillRectangle(DopBrush, _startPosX + 15, _startPosY + 10, 10, 15);
+ g.FillRectangle(DopBrush, _startPosX + 30, _startPosY + 10, 10, 15);
+ }
+ // верт площадка
+ if (HelicopPad)
+ {
+ Brush DopBrush = new SolidBrush(DopColor);
+ g.FillEllipse(DopBrush, _startPosX + 15, _startPosY + 25, 25, 25);
+ }
+ }
+
+ }
+}
diff --git a/Cruiser/EntityCruiser.cs b/Cruiser/EntityCruiser.cs
new file mode 100644
index 0000000..6566ecf
--- /dev/null
+++ b/Cruiser/EntityCruiser.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Cruiser
+{
+ public class EntityCruiser
+ {
+ ///
+ /// Скорость
+ ///
+ public int Speed { get; private set; }
+ ///
+ /// Вес
+ ///
+ public double Weight { get; private set; }
+ ///
+ /// Основной цвет
+ ///
+ public Color BodyColor { get; private set; }
+ ///
+ /// Второстепенный цвет
+ ///
+ public Color SecondColor { get; private set; }
+ ///
+ /// Признак (опция) наличия ракетных шахт
+ ///
+ public bool RocketMines { get; private set; }
+ ///
+ /// Признак (опция) наличия вертолётной площадки
+ ///
+ public bool Helipad { get; private set; }
+ ///
+ /// Шаг перемещения Крейсера
+ ///
+ public double Step => (double)Speed * 100 / Weight;
+ /// Скорость
+ /// Вес Крейсера
+ /// Основной цвет
+ /// Второстепенный цвет
+ /// Признак наличия ракетных шахт
+ /// Признак наличия вертолётной площадки
+ public void Init(int speed, double weight, Color bodyColor, Color secColor, bool rocketMines, bool helipad)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ SecondColor = secColor;
+ RocketMines = rocketMines;
+ Helipad = helipad;
+ }
+ }
+}
diff --git a/Cruiser/Form1.Designer.cs b/Cruiser/Form1.Designer.cs
deleted file mode 100644
index 95fc312..0000000
--- a/Cruiser/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace Cruiser
-{
- 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/Cruiser/Form1.cs b/Cruiser/Form1.cs
deleted file mode 100644
index cda6114..0000000
--- a/Cruiser/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace Cruiser
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/Cruiser/FormCruiser.Designer.cs b/Cruiser/FormCruiser.Designer.cs
new file mode 100644
index 0000000..fb2e247
--- /dev/null
+++ b/Cruiser/FormCruiser.Designer.cs
@@ -0,0 +1,129 @@
+namespace Cruiser
+{
+ partial class FormCruiser
+ {
+ ///
+ /// 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()
+ {
+ pictureBoxCruiser = new PictureBox();
+ buttonCreate = new Button();
+ buttonRight = new Button();
+ buttonDown = new Button();
+ buttonLeft = new Button();
+ buttonUp = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxCruiser).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxCruiser
+ //
+ pictureBoxCruiser.Dock = DockStyle.Fill;
+ pictureBoxCruiser.Location = new Point(0, 0);
+ pictureBoxCruiser.Name = "pictureBoxCruiser";
+ pictureBoxCruiser.Size = new Size(800, 450);
+ pictureBoxCruiser.TabIndex = 0;
+ pictureBoxCruiser.TabStop = false;
+ //
+ // buttonCreate
+ //
+ buttonCreate.Location = new Point(12, 402);
+ buttonCreate.Name = "buttonCreate";
+ buttonCreate.Size = new Size(125, 36);
+ buttonCreate.TabIndex = 1;
+ buttonCreate.Text = "Создать";
+ buttonCreate.UseVisualStyleBackColor = true;
+ buttonCreate.Click += buttonCreate_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.BackgroundImage = Properties.Resources.Right;
+ buttonRight.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonRight.Location = new Point(758, 408);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(30, 30);
+ buttonRight.TabIndex = 2;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.BackgroundImage = Properties.Resources.Down;
+ buttonDown.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonDown.Location = new Point(722, 408);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(30, 30);
+ buttonDown.TabIndex = 3;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.BackgroundImage = Properties.Resources.Left;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonLeft.Location = new Point(686, 408);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(30, 30);
+ buttonLeft.TabIndex = 4;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.BackgroundImage = Properties.Resources.Up;
+ buttonUp.BackgroundImageLayout = ImageLayout.Zoom;
+ buttonUp.Location = new Point(722, 372);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(30, 30);
+ buttonUp.TabIndex = 5;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // FormCruiser
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(800, 450);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonCreate);
+ Controls.Add(pictureBoxCruiser);
+ Name = "FormCruiser";
+ Text = "Cruiser";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxCruiser).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxCruiser;
+ private Button buttonCreate;
+ private Button buttonRight;
+ private Button buttonDown;
+ private Button buttonLeft;
+ private Button buttonUp;
+ }
+}
\ No newline at end of file
diff --git a/Cruiser/FormCruiser.cs b/Cruiser/FormCruiser.cs
new file mode 100644
index 0000000..b6e285e
--- /dev/null
+++ b/Cruiser/FormCruiser.cs
@@ -0,0 +1,80 @@
+using System;
+
+namespace Cruiser
+{
+ public partial class FormCruiser : Form
+ {
+ Bitmap bmp;
+ ///
+ /// -
+ ///
+ private DrawingCruiser? _drawningCruiser;
+ ///
+ ///
+ ///
+ public FormCruiser()
+ {
+ InitializeComponent();
+ bmp = new(pictureBoxCruiser.Width, pictureBoxCruiser.Width);
+ }
+
+
+ ///
+ ///
+ ///
+ private void Draw()
+ {
+ if (_drawningCruiser == null)
+ {
+ return;
+ }
+
+ Graphics gr = Graphics.FromImage(bmp);
+ gr.Clear(Color.White);
+ _drawningCruiser.DrawTransport(gr);
+ pictureBoxCruiser.Image = bmp;
+
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningCruiser == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _drawningCruiser.MoveTransport(Direction.Up);
+ break;
+ case "buttonDown":
+ _drawningCruiser.MoveTransport(Direction.Down);
+ break;
+ case "buttonLeft":
+ _drawningCruiser.MoveTransport(Direction.Left);
+ break;
+ case "buttonRight":
+ _drawningCruiser.MoveTransport(Direction.Right);
+ break;
+ }
+ Draw();
+ }
+ private void buttonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawningCruiser = new DrawingCruiser();
+ _drawningCruiser.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)),
+ 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)),
+ pictureBoxCruiser.Width,
+ pictureBoxCruiser.Height);
+ _drawningCruiser.SetPosition(random.Next(10, 100), random.Next(10, 100));
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Cruiser/Form1.resx b/Cruiser/FormCruiser.resx
similarity index 93%
rename from Cruiser/Form1.resx
rename to Cruiser/FormCruiser.resx
index 1af7de1..af32865 100644
--- a/Cruiser/Form1.resx
+++ b/Cruiser/FormCruiser.resx
@@ -1,17 +1,17 @@
-
diff --git a/Cruiser/Program.cs b/Cruiser/Program.cs
index d0f2665..626bc14 100644
--- a/Cruiser/Program.cs
+++ b/Cruiser/Program.cs
@@ -11,7 +11,7 @@ namespace Cruiser
// 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 FormCruiser());
}
}
}
\ No newline at end of file
diff --git a/Cruiser/Properties/Resources.Designer.cs b/Cruiser/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..3d63f49
--- /dev/null
+++ b/Cruiser/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace Cruiser.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("Cruiser.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/Cruiser/Properties/Resources.resx b/Cruiser/Properties/Resources.resx
new file mode 100644
index 0000000..3c74f22
--- /dev/null
+++ b/Cruiser/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\Left.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\resources\Down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\resources\Up.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\resources\Right.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/Cruiser/resources/Down.jpg b/Cruiser/resources/Down.jpg
new file mode 100644
index 0000000..d72cdc5
Binary files /dev/null and b/Cruiser/resources/Down.jpg differ
diff --git a/Cruiser/resources/Left.jpg b/Cruiser/resources/Left.jpg
new file mode 100644
index 0000000..3fb0692
Binary files /dev/null and b/Cruiser/resources/Left.jpg differ
diff --git a/Cruiser/resources/Right.jpg b/Cruiser/resources/Right.jpg
new file mode 100644
index 0000000..35ee73a
Binary files /dev/null and b/Cruiser/resources/Right.jpg differ
diff --git a/Cruiser/resources/Up.jpg b/Cruiser/resources/Up.jpg
new file mode 100644
index 0000000..4d9a72d
Binary files /dev/null and b/Cruiser/resources/Up.jpg differ
diff --git a/Cruiser/resources/someLost.txt b/Cruiser/resources/someLost.txt
new file mode 100644
index 0000000..853cc2e
--- /dev/null
+++ b/Cruiser/resources/someLost.txt
@@ -0,0 +1,31 @@
+ private void Form1_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ private void pictureBoxCruiser_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ #region buttonsClick
+ private void buttonLeft_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void buttonDown_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void buttonUp_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void buttonRight_Click(object sender, EventArgs e)
+ {
+
+ }
+ #endregion;
\ No newline at end of file