diff --git a/DumpTruck/DumpTruck/Direction.cs b/DumpTruck/DumpTruck/Direction.cs
new file mode 100644
index 0000000..0dc8cb5
--- /dev/null
+++ b/DumpTruck/DumpTruck/Direction.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DumpTruck
+{
+ internal enum Direction
+ {
+ Up = 1,
+ Down = 2,
+ Left = 3,
+ Right = 4
+ }
+}
diff --git a/DumpTruck/DumpTruck/DrawningTruck.cs b/DumpTruck/DumpTruck/DrawningTruck.cs
new file mode 100644
index 0000000..4a59de3
--- /dev/null
+++ b/DumpTruck/DumpTruck/DrawningTruck.cs
@@ -0,0 +1,120 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DumpTruck
+{
+ internal class drawningTruck
+ {
+ public EntityTruck Truck { get; private set; }
+ private float _startPosX;
+ private float _startPosY;
+ private int? _pictureWidth = null;
+ private int? _pictureHeight = null;
+ protected readonly int _truckWidth = 100;
+ protected readonly int _truckHeight = 55;
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Truck = new EntityTruck();
+ Truck.Init(speed, weight, bodyColor);
+ }
+ public void SetPosition(int x, int y, int width, int height)
+ {
+ _startPosX = x;
+ _startPosY = y;
+ _pictureWidth = width;
+ _pictureHeight = height;
+ }
+ public void MoveTransport(Direction direction)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ case Direction.Left:
+ if (_startPosX - Truck.Step > 0)
+ {
+ _startPosX -= Truck.Step;
+ }
+ break;
+ case Direction.Right:
+ if (_startPosX + _truckWidth + Truck.Step < _pictureWidth)
+ {
+ _startPosX += Truck.Step;
+ }
+
+ break;
+ case Direction.Up:
+ if (_startPosY - Truck.Step > 0)
+ {
+ _startPosY -= Truck.Step;
+ }
+ break;
+ case Direction.Down:
+ if (_startPosY + _truckHeight + Truck.Step < _pictureHeight)
+ {
+ _startPosY += Truck.Step;
+ }
+ break;
+
+ }
+ }
+ public void DrawTransport(Graphics g)
+ {
+ if (_startPosX < 0 || _startPosY < 0 || !_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+
+
+ Brush br = new SolidBrush(Truck?.BodyColor ?? Color.Black);
+ g.FillRectangle(br, _startPosX + 80, _startPosY, 20, 30);
+
+ Brush brBrown = new SolidBrush(Color.FromArgb(200, 150, 40));
+ g.FillRectangle(brBrown, _startPosX, _startPosY + 30, 100, 5);
+
+ Brush brBlack = new SolidBrush(Color.Black);
+ g.FillEllipse(brBlack, _startPosX, _startPosY + 35, 20, 20);
+ g.FillEllipse(brBlack, _startPosX + 22, _startPosY + 35, 20, 20);
+ g.FillEllipse(brBlack, _startPosX + 80, _startPosY + 35, 20, 20);
+
+ Brush brWhite = new SolidBrush(Color.White);
+ g.FillEllipse(brWhite, _startPosX + 5, _startPosY + 40, 10, 10);
+ g.FillEllipse(brWhite, _startPosX + 27, _startPosY + 40, 10, 10);
+ g.FillEllipse(brWhite, _startPosX + 85, _startPosY + 40, 10, 10);
+
+ Pen pen = new Pen(Color.Black);
+
+ g.DrawRectangle(pen, _startPosX + 80, _startPosY, 20, 30);
+ g.DrawRectangle(pen, _startPosX, _startPosY + 30, 100, 5);
+ g.DrawEllipse(pen, _startPosX, _startPosY + 35, 20, 20);
+ g.DrawEllipse(pen, _startPosX + 22, _startPosY + 35, 20, 20);
+ g.DrawEllipse(pen, _startPosX + 80, _startPosY + 35, 20, 20);
+
+ }
+ public void ChangeBorders(int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureWidth <= _truckWidth || _pictureHeight <= _truckHeight)
+ {
+ _pictureHeight = null;
+ _pictureWidth = null;
+ return;
+ }
+ if (_startPosX + _truckWidth >= _pictureWidth)
+ {
+ _startPosX = _pictureWidth.Value - _truckWidth;
+ }
+ if (_startPosY + _truckHeight >= _pictureHeight)
+ {
+ _startPosY = _pictureHeight.Value - _truckHeight;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/DumpTruck.csproj b/DumpTruck/DumpTruck/DumpTruck.csproj
index db56233..f8d2019 100644
--- a/DumpTruck/DumpTruck/DumpTruck.csproj
+++ b/DumpTruck/DumpTruck/DumpTruck.csproj
@@ -46,14 +46,20 @@
-
+
+
+
+
Form
-
- Form1.cs
+
+ FormTruck.cs
+
+ FormTruck.cs
+
ResXFileCodeGenerator
Resources.Designer.cs
@@ -62,6 +68,7 @@
True
Resources.resx
+ True
SettingsSingleFileGenerator
@@ -76,5 +83,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/EntityTruck.cs b/DumpTruck/DumpTruck/EntityTruck.cs
new file mode 100644
index 0000000..27d1717
--- /dev/null
+++ b/DumpTruck/DumpTruck/EntityTruck.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DumpTruck
+{
+ internal class EntityTruck
+ {
+ 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)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ }
+ }
+}
diff --git a/DumpTruck/DumpTruck/Form1.Designer.cs b/DumpTruck/DumpTruck/Form1.Designer.cs
deleted file mode 100644
index a9e9511..0000000
--- a/DumpTruck/DumpTruck/Form1.Designer.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-namespace DumpTruck
-{
- partial class Form1
- {
- ///
- /// Обязательная переменная конструктора.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Освободить все используемые ресурсы.
- ///
- /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Код, автоматически созданный конструктором форм Windows
-
- ///
- /// Требуемый метод для поддержки конструктора — не изменяйте
- /// содержимое этого метода с помощью редактора кода.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Text = "Form1";
- }
-
- #endregion
- }
-}
-
diff --git a/DumpTruck/DumpTruck/Form1.cs b/DumpTruck/DumpTruck/Form1.cs
deleted file mode 100644
index c1f1376..0000000
--- a/DumpTruck/DumpTruck/Form1.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-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 DumpTruck
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/DumpTruck/DumpTruck/FormTruck.Designer.cs b/DumpTruck/DumpTruck/FormTruck.Designer.cs
new file mode 100644
index 0000000..d86fd64
--- /dev/null
+++ b/DumpTruck/DumpTruck/FormTruck.Designer.cs
@@ -0,0 +1,173 @@
+namespace DumpTruck
+{
+ partial class FormTruck
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором форм Windows
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTruck));
+ this.buttonCreate = new System.Windows.Forms.Button();
+ this.pictureBoxTruck = new System.Windows.Forms.PictureBox();
+ this.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.toolStripStatusLabelSpeed = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelWeight = new System.Windows.Forms.ToolStripStatusLabel();
+ this.toolStripStatusLabelColor = new System.Windows.Forms.ToolStripStatusLabel();
+ this.buttonUp = new System.Windows.Forms.Button();
+ this.buttonDown = new System.Windows.Forms.Button();
+ this.buttonLeft = new System.Windows.Forms.Button();
+ this.buttonRight = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxTruck)).BeginInit();
+ this.statusStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // buttonCreate
+ //
+ this.buttonCreate.Location = new System.Drawing.Point(12, 282);
+ this.buttonCreate.Name = "buttonCreate";
+ this.buttonCreate.Size = new System.Drawing.Size(75, 23);
+ this.buttonCreate.TabIndex = 0;
+ this.buttonCreate.Text = "button1";
+ this.buttonCreate.UseVisualStyleBackColor = true;
+ this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click);
+ //
+ // pictureBoxTruck
+ //
+ this.pictureBoxTruck.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pictureBoxTruck.Location = new System.Drawing.Point(0, 0);
+ this.pictureBoxTruck.Name = "pictureBoxTruck";
+ this.pictureBoxTruck.Size = new System.Drawing.Size(694, 318);
+ this.pictureBoxTruck.TabIndex = 1;
+ this.pictureBoxTruck.TabStop = false;
+ this.pictureBoxTruck.Resize += new System.EventHandler(this.pictureBoxTruck_Resize);
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabelSpeed,
+ this.toolStripStatusLabelWeight,
+ this.toolStripStatusLabelColor});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 318);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(694, 22);
+ this.statusStrip1.TabIndex = 2;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // toolStripStatusLabelSpeed
+ //
+ this.toolStripStatusLabelSpeed.Name = "toolStripStatusLabelSpeed";
+ this.toolStripStatusLabelSpeed.Size = new System.Drawing.Size(118, 17);
+ this.toolStripStatusLabelSpeed.Text = "toolStripStatusLabel1";
+ //
+ // toolStripStatusLabelWeight
+ //
+ this.toolStripStatusLabelWeight.Name = "toolStripStatusLabelWeight";
+ this.toolStripStatusLabelWeight.Size = new System.Drawing.Size(118, 17);
+ this.toolStripStatusLabelWeight.Text = "toolStripStatusLabel2";
+ //
+ // toolStripStatusLabelColor
+ //
+ this.toolStripStatusLabelColor.Name = "toolStripStatusLabelColor";
+ this.toolStripStatusLabelColor.Size = new System.Drawing.Size(118, 17);
+ this.toolStripStatusLabelColor.Text = "toolStripStatusLabel3";
+ //
+ // buttonUp
+ //
+ this.buttonUp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("buttonUp.BackgroundImage")));
+ this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonUp.Location = new System.Drawing.Point(613, 246);
+ 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);
+ //
+ // buttonDown
+ //
+ this.buttonDown.BackgroundImage = global::DumpTruck.Properties.Resources.down;
+ this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonDown.Location = new System.Drawing.Point(613, 282);
+ this.buttonDown.Name = "buttonDown";
+ this.buttonDown.Size = new System.Drawing.Size(30, 30);
+ this.buttonDown.TabIndex = 4;
+ this.buttonDown.UseVisualStyleBackColor = true;
+ this.buttonDown.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // buttonLeft
+ //
+ this.buttonLeft.BackgroundImage = global::DumpTruck.Properties.Resources.left;
+ this.buttonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonLeft.Location = new System.Drawing.Point(577, 282);
+ this.buttonLeft.Name = "buttonLeft";
+ this.buttonLeft.Size = new System.Drawing.Size(30, 30);
+ this.buttonLeft.TabIndex = 5;
+ this.buttonLeft.UseVisualStyleBackColor = true;
+ this.buttonLeft.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // buttonRight
+ //
+ this.buttonRight.BackgroundImage = global::DumpTruck.Properties.Resources.right;
+ this.buttonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonRight.Location = new System.Drawing.Point(649, 282);
+ this.buttonRight.Name = "buttonRight";
+ this.buttonRight.Size = new System.Drawing.Size(30, 30);
+ this.buttonRight.TabIndex = 6;
+ this.buttonRight.UseVisualStyleBackColor = true;
+ this.buttonRight.Click += new System.EventHandler(this.buttonMove_Click);
+ //
+ // FormTruck
+ //
+ this.ClientSize = new System.Drawing.Size(694, 340);
+ this.Controls.Add(this.buttonRight);
+ this.Controls.Add(this.buttonLeft);
+ this.Controls.Add(this.buttonDown);
+ this.Controls.Add(this.buttonUp);
+ this.Controls.Add(this.buttonCreate);
+ this.Controls.Add(this.pictureBoxTruck);
+ this.Controls.Add(this.statusStrip1);
+ this.Name = "FormTruck";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxTruck)).EndInit();
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button buttonCreate;
+ private System.Windows.Forms.PictureBox pictureBoxTruck;
+ private System.Windows.Forms.StatusStrip statusStrip1;
+ private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelWeight;
+ private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelColor;
+ private System.Windows.Forms.Button buttonUp;
+ private System.Windows.Forms.Button buttonDown;
+ private System.Windows.Forms.Button buttonLeft;
+ private System.Windows.Forms.Button buttonRight;
+ }
+}
+
diff --git a/DumpTruck/DumpTruck/FormTruck.cs b/DumpTruck/DumpTruck/FormTruck.cs
new file mode 100644
index 0000000..34bbe9a
--- /dev/null
+++ b/DumpTruck/DumpTruck/FormTruck.cs
@@ -0,0 +1,66 @@
+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 DumpTruck
+{
+ public partial class FormTruck : Form
+ {
+ private drawningTruck _truck;
+ public FormTruck()
+ {
+ InitializeComponent();
+ }
+ private void Draw()
+ {
+ Bitmap bmp = new Bitmap(pictureBoxTruck.Width, pictureBoxTruck.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _truck?.DrawTransport(gr);
+ pictureBoxTruck.Image = bmp;
+ }
+ private void buttonCreate_Click(object sender, EventArgs e)
+ {
+ Random rnd = new Random();
+ _truck = new drawningTruck();
+ _truck.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
+ _truck.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxTruck.Width, pictureBoxTruck.Height);
+ toolStripStatusLabelSpeed.Text = $"Скорость: {_truck.Truck.Speed}";
+ toolStripStatusLabelWeight.Text = $"Вес: {_truck.Truck.Weight}";
+ toolStripStatusLabelColor.Text = $"Цвет: {_truck.Truck.BodyColor}";
+ Draw();
+ }
+ private void buttonMove_Click(object sender, EventArgs e)
+ {
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _truck?.MoveTransport(Direction.Up);
+ break;
+ case "buttonDown":
+ _truck?.MoveTransport(Direction.Down);
+ break;
+ case "buttonRight":
+ _truck?.MoveTransport(Direction.Right);
+ break;
+ case "buttonLeft":
+ _truck?.MoveTransport(Direction.Left);
+ break;
+ }
+ Draw();
+ }
+ private void pictureBoxTruck_Resize(object sender, EventArgs e)
+ {
+ _truck?.ChangeBorders(pictureBoxTruck.Width, pictureBoxTruck.Height);
+ Draw();
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/FormTruck.resx b/DumpTruck/DumpTruck/FormTruck.resx
new file mode 100644
index 0000000..7701323
--- /dev/null
+++ b/DumpTruck/DumpTruck/FormTruck.resx
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+ /9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBD
+ AAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0M
+ DgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM
+ DAwMDAwMDAwMDAwMDAz/wAARCACWAJYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQF
+ BgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAk
+ M2JyggkKFh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2SrTv/AE76xX5A1+v3/B6t/wAp
+ TfAP/ZKtO/8ATvrFfkDQAUUUUAFFFFABRRRQAUUUUAf0/f8ABlT/AMosvH3/AGVXUf8A00aPX6/V+QP/
+ AAZU/wDKLLx9/wBlV1H/ANNGj1+v1ABRRRQAUUUUAFFFFABRRRQB/MD/AMHq3/KU3wD/ANkq07/076xX
+ 5A1+v3/B6t/ylN8A/wDZKtO/9O+sV+QNABRRRQAUUUUAFFFFABRRRQB/T9/wZU/8osvH3/ZVdR/9NGj1
+ +v1fkD/wZU/8osvH3/ZVdR/9NGj1+v1ABRRRQAUUUUAFFFFABRRRQB/MD/werf8AKU3wD/2SrTv/AE76
+ xX5A1+v3/B6t/wApTfAP/ZKtO/8ATvrFfkDQAUUUUAFFFFABRRRQAUUUUAf0/f8ABlT/AMosvH3/AGVX
+ Uf8A00aPX6/V+QP/AAZU/wDKLLx9/wBlV1H/ANNGj1+v1ABRRRQAUUUUAFFFFABRRRQB/MD/AMHq3/KU
+ 3wD/ANkq07/076xX5A1+v3/B6t/ylN8A/wDZKtO/9O+sV+QNABRRRQAUUUUAFFFFABRRRQB/T9/wZU/8
+ osvH3/ZVdR/9NGj1+v1fkD/wZU/8osvH3/ZVdR/9NGj1+v1ABRRRQAUUUUAFFFFABRRRQB/MD/werf8A
+ KU3wD/2SrTv/AE76xX5A0UUAFFFFABRRRQAUUUUAFFFFAH9P3/BlT/yiy8ff9lV1H/00aPX6/UUUAFFF
+ FABRRRQB/9k=
+
+
+
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/Program.cs b/DumpTruck/DumpTruck/Program.cs
index a379ddb..b0536fd 100644
--- a/DumpTruck/DumpTruck/Program.cs
+++ b/DumpTruck/DumpTruck/Program.cs
@@ -16,7 +16,7 @@ namespace DumpTruck
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new Form1());
+ Application.Run(new FormTruck());
}
}
}
diff --git a/DumpTruck/DumpTruck/Properties/Resources.Designer.cs b/DumpTruck/DumpTruck/Properties/Resources.Designer.cs
index 800c30e..aac7e60 100644
--- a/DumpTruck/DumpTruck/Properties/Resources.Designer.cs
+++ b/DumpTruck/DumpTruck/Properties/Resources.Designer.cs
@@ -1,71 +1,103 @@
//------------------------------------------------------------------------------
//
-// Этот код создан программным средством.
-// Версия среды выполнения: 4.0.30319.42000
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
//
-// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
-// код создан повторно.
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
//
//------------------------------------------------------------------------------
-namespace DumpTruck.Properties
-{
-
-
+namespace DumpTruck.Properties {
+ using System;
+
+
///
- /// Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+ /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
///
- // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
- // класс с помощью таких средств, как ResGen или Visual Studio.
- // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
- // с параметром /str или заново постройте свой VS-проект.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ // Этот класс создан автоматически классом 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
- {
-
+ 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()
- {
+ internal Resources() {
}
-
+
///
- /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+ /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DumpTruck.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
-
+
///
- /// Переопределяет свойство CurrentUICulture текущего потока для всех
- /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+ /// Перезаписывает свойство CurrentUICulture текущего потока для всех
+ /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
return resourceCulture;
}
- set
- {
+ 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/DumpTruck/DumpTruck/Properties/Resources.resx b/DumpTruck/DumpTruck/Properties/Resources.resx
index af7dbeb..5cd41d4 100644
--- a/DumpTruck/DumpTruck/Properties/Resources.resx
+++ b/DumpTruck/DumpTruck/Properties/Resources.resx
@@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
@@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
+
@@ -68,9 +69,10 @@
-
+
+
@@ -85,9 +87,10 @@
-
+
+
@@ -109,9 +112,22 @@
2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\up.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left.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
+
+
+ ..\Resources\down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/DumpTruck/DumpTruck/Resources/down.jpg b/DumpTruck/DumpTruck/Resources/down.jpg
new file mode 100644
index 0000000..aabdc4a
Binary files /dev/null and b/DumpTruck/DumpTruck/Resources/down.jpg differ
diff --git a/DumpTruck/DumpTruck/Resources/left.jpg b/DumpTruck/DumpTruck/Resources/left.jpg
new file mode 100644
index 0000000..36676e1
Binary files /dev/null and b/DumpTruck/DumpTruck/Resources/left.jpg differ
diff --git a/DumpTruck/DumpTruck/Resources/right.jpg b/DumpTruck/DumpTruck/Resources/right.jpg
new file mode 100644
index 0000000..84e1972
Binary files /dev/null and b/DumpTruck/DumpTruck/Resources/right.jpg differ
diff --git a/DumpTruck/DumpTruck/Resources/up.jpg b/DumpTruck/DumpTruck/Resources/up.jpg
new file mode 100644
index 0000000..25c56cb
Binary files /dev/null and b/DumpTruck/DumpTruck/Resources/up.jpg differ