diff --git a/GasolineTanker/GasolineTanker/Direction.cs b/GasolineTanker/GasolineTanker/Direction.cs
new file mode 100644
index 0000000..18b1336
--- /dev/null
+++ b/GasolineTanker/GasolineTanker/Direction.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GasolineTanker
+{
+ public enum Direction
+ {
+ Up = 1,
+ Down = 2,
+ Left = 3,
+ Right = 4
+ }
+}
diff --git a/GasolineTanker/GasolineTanker/DrawningGasolineTanker.cs b/GasolineTanker/GasolineTanker/DrawningGasolineTanker.cs
new file mode 100644
index 0000000..674604f
--- /dev/null
+++ b/GasolineTanker/GasolineTanker/DrawningGasolineTanker.cs
@@ -0,0 +1,163 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace GasolineTanker
+{
+ public class DrawningGasolineTanker
+ {
+ public EntityGasolineTanker? EntityGasolineTanker { get; private set; }
+ public int _pictureWidth;
+ public int _pictureHeight;
+ private int _startPosX = 0;
+ private int _startPosY = 0;
+ //Ширина грузовика
+ private readonly int _gasolineTankerWidth = 200;
+ //Высота грузовика
+ private readonly int _gasolineTankerHeight = 100;
+ //Инициализация свойств
+ public bool Init(int speed, double weight, Color bodyColor, bool tank, bool signalBeacon, Color additionalColor, int width, int height)
+ {
+
+ if (width <= _gasolineTankerWidth || height <= _gasolineTankerHeight)
+ {
+ return false;
+ }
+ _pictureWidth = width;
+ _pictureHeight = height;
+ EntityGasolineTanker = new EntityGasolineTanker();
+ EntityGasolineTanker.Init(speed, weight, bodyColor, tank, signalBeacon, additionalColor);
+ return true;
+ }
+ public void SetPosition(int x, int y)
+ {
+ if (EntityGasolineTanker == null)
+ {
+ return;
+ }
+ _startPosX = x;
+ _startPosY = y;
+ if(x + _gasolineTankerWidth >= _pictureWidth || y + _gasolineTankerHeight >= _pictureHeight)
+ {
+ _startPosX = 1;
+ _startPosY = 1;
+ }
+ }
+ public void MoveTransport(Direction direction)
+ {
+ if (EntityGasolineTanker == null)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ case Direction.Left:
+ if (_startPosX - EntityGasolineTanker.Step >= 0)
+ {
+ _startPosX -= (int)EntityGasolineTanker.Step;
+ }
+ else
+ {
+ _startPosX = 0;
+ }
+ break;
+ case Direction.Up:
+ if (_startPosY - EntityGasolineTanker.Step > 0)
+ {
+ _startPosY -= (int)EntityGasolineTanker.Step;
+ }
+ else
+ {
+ _startPosY = 0;
+ }
+ break;
+ case Direction.Right:
+ if (_startPosX + EntityGasolineTanker.Step + _gasolineTankerWidth < _pictureWidth)
+ {
+ _startPosX += (int)EntityGasolineTanker.Step;
+ }
+ else
+ {
+ _startPosX = _pictureWidth - _gasolineTankerWidth;
+ }
+ break;
+ case Direction.Down:
+ if (_startPosY + EntityGasolineTanker.Step + _gasolineTankerHeight < _pictureHeight)
+ {
+ _startPosY += (int)EntityGasolineTanker.Step;
+ }
+ else
+ {
+ _startPosY = _pictureHeight - _gasolineTankerHeight;
+ }
+ break;
+ }
+ }
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityGasolineTanker == null)
+ {
+ return;
+ }
+ Pen pen = new(Color.Black);
+ Brush bodyBrush = new SolidBrush(EntityGasolineTanker.BodyColor);
+ Brush additionalBrush = new SolidBrush(EntityGasolineTanker.AdditionalColor);
+ Brush wheelBrush = new SolidBrush(Color.Black);
+ //Дополнительные элементы
+ if (EntityGasolineTanker.Tank)
+ {
+ //Цистерна
+ g.FillEllipse(additionalBrush, _startPosX + _gasolineTankerWidth / 20 * 0, _startPosY + _gasolineTankerHeight / 10 * 1, _gasolineTankerWidth / 20 * 5, _gasolineTankerHeight / 10 * 5);
+ g.FillEllipse(additionalBrush, _startPosX + _gasolineTankerWidth / 20 * 7, _startPosY + _gasolineTankerHeight / 10 * 1, _gasolineTankerWidth / 20 * 5, _gasolineTankerHeight / 10 * 5);
+ Point[] pointsTunk =
+ {
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 2, _startPosY + _gasolineTankerHeight / 10 * 1),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 9, _startPosY + _gasolineTankerHeight / 10 * 1),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 9, _startPosY + _gasolineTankerHeight / 10 * 6),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 2, _startPosY + _gasolineTankerHeight / 10 * 6),
+ };
+ g.FillPolygon(additionalBrush, pointsTunk);
+ }
+ if (EntityGasolineTanker.SignalBeacon)
+ {
+ //Маячок
+ Point[] pointsBeacon =
+ {
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 13, _startPosY + _gasolineTankerHeight / 10 * 1),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 13, _startPosY + _gasolineTankerHeight / 10 * 0),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 14, _startPosY + _gasolineTankerHeight / 10 * 0),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 14, _startPosY + _gasolineTankerHeight / 10 * 1),
+ };
+ g.FillPolygon(additionalBrush, pointsBeacon);
+ //g.DrawPolygon(pen, pointsBeacon);
+ }
+ /*
+ //Граница отрисовки объекта(для безопасности при редактировании)
+ Point[] pointsBorder = { new Point(_startPosX, _startPosY),
+ new Point(_startPosX, _startPosY + _gasolineTankerHeight),
+ new Point(_startPosX + _gasolineTankerWidth, _startPosY + _gasolineTankerHeight),
+ new Point(_startPosX + _gasolineTankerWidth, _startPosY)};
+
+ g.DrawPolygon(pen, pointsBorder);
+ */
+ Point[] pointsFrame = {
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 0, _startPosY + _gasolineTankerHeight / 10 * 6),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 12, _startPosY + _gasolineTankerHeight / 10 * 6),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 12, _startPosY + _gasolineTankerHeight / 10 * 1),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 15, _startPosY + _gasolineTankerHeight / 10 * 1),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 16, _startPosY + _gasolineTankerHeight / 10 * 4),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 20, _startPosY + _gasolineTankerHeight / 10 * 5),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 20, _startPosY + _gasolineTankerHeight / 10 * 8),
+ new Point(_startPosX + _gasolineTankerWidth / 20 * 0, _startPosY + _gasolineTankerHeight / 10 * 8),};
+
+ g.FillPolygon(bodyBrush, pointsFrame);
+ g.DrawPolygon(pen, pointsFrame);
+ //Колёса
+ g.FillEllipse(wheelBrush, _startPosX + _gasolineTankerWidth / 20 * 1, _startPosY + _gasolineTankerHeight / 10 * 7, _gasolineTankerWidth / 20 * 3, _gasolineTankerHeight / 10 * 3);
+ g.FillEllipse(wheelBrush, _startPosX + _gasolineTankerWidth / 20 * 5, _startPosY + _gasolineTankerHeight / 10 * 7, _gasolineTankerWidth / 20 * 3, _gasolineTankerHeight / 10 * 3);
+ g.FillEllipse(wheelBrush, _startPosX + _gasolineTankerWidth / 20 * 16, _startPosY + _gasolineTankerHeight / 10 * 7, _gasolineTankerWidth / 20 * 3, _gasolineTankerHeight / 10 * 3);
+ }
+ }
+}
diff --git a/GasolineTanker/GasolineTanker/EntityGasolineTanker.cs b/GasolineTanker/GasolineTanker/EntityGasolineTanker.cs
new file mode 100644
index 0000000..bf89b23
--- /dev/null
+++ b/GasolineTanker/GasolineTanker/EntityGasolineTanker.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Drawing;
+
+namespace GasolineTanker
+{
+ public class EntityGasolineTanker
+ {
+ public int Speed { get; private set; }
+ public double Weight { get; private set; }
+ // Основной цвет
+ public Color BodyColor { get; private set; }
+ //Наличие цистерны
+ public bool Tank { get; private set; }
+ //Наличие сигнального маяка
+ public bool SignalBeacon { get; private set; }
+ //Дополнительный цвет
+ public Color AdditionalColor { get; private set; }
+ //Шаг перемещения
+ public double Step => (double)Speed * 100 / Weight;
+ //Инициализация полей Грузовика
+ public void Init(int speed, double weight, Color bodyColor, bool tank, bool signalBeacon, Color additionalColor)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ Tank = tank;
+ SignalBeacon = signalBeacon;
+ AdditionalColor = additionalColor;
+ }
+ }
+}
diff --git a/GasolineTanker/GasolineTanker/Form1.Designer.cs b/GasolineTanker/GasolineTanker/Form1.Designer.cs
index 521f5d0..220fc1f 100644
--- a/GasolineTanker/GasolineTanker/Form1.Designer.cs
+++ b/GasolineTanker/GasolineTanker/Form1.Designer.cs
@@ -1,6 +1,6 @@
namespace GasolineTanker
{
- partial class Form1
+ partial class GasolineTanker
{
///
/// Required designer variable.
@@ -28,12 +28,111 @@
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
+ this.PictureBoxGasolineTanker = new System.Windows.Forms.PictureBox();
+ this.ButtonCreate = new System.Windows.Forms.Button();
+ this.ButtonRight = new System.Windows.Forms.Button();
+ this.ButtonDown = new System.Windows.Forms.Button();
+ this.ButtonLeft = new System.Windows.Forms.Button();
+ this.ButtonUp = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.PictureBoxGasolineTanker)).BeginInit();
+ this.SuspendLayout();
+ //
+ // PictureBoxGasolineTanker
+ //
+ this.PictureBoxGasolineTanker.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.PictureBoxGasolineTanker.Location = new System.Drawing.Point(0, 0);
+ this.PictureBoxGasolineTanker.Name = "PictureBoxGasolineTanker";
+ this.PictureBoxGasolineTanker.Size = new System.Drawing.Size(884, 461);
+ this.PictureBoxGasolineTanker.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.PictureBoxGasolineTanker.TabIndex = 0;
+ this.PictureBoxGasolineTanker.TabStop = false;
+ //
+ // 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, 426);
+ this.ButtonCreate.Name = "ButtonCreate";
+ this.ButtonCreate.Size = new System.Drawing.Size(75, 23);
+ this.ButtonCreate.TabIndex = 1;
+ 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::GasolineTanker.Properties.Resources.right;
+ this.ButtonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.ButtonRight.Location = new System.Drawing.Point(842, 419);
+ this.ButtonRight.Name = "ButtonRight";
+ this.ButtonRight.Size = new System.Drawing.Size(30, 30);
+ this.ButtonRight.TabIndex = 2;
+ this.ButtonRight.UseVisualStyleBackColor = true;
+ this.ButtonRight.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // ButtonDown
+ //
+ this.ButtonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.ButtonDown.BackgroundImage = global::GasolineTanker.Properties.Resources.down;
+ this.ButtonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.ButtonDown.Location = new System.Drawing.Point(806, 419);
+ this.ButtonDown.Name = "ButtonDown";
+ this.ButtonDown.Size = new System.Drawing.Size(30, 30);
+ this.ButtonDown.TabIndex = 3;
+ this.ButtonDown.UseVisualStyleBackColor = true;
+ this.ButtonDown.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::GasolineTanker.Properties.Resources.left;
+ this.ButtonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.ButtonLeft.Location = new System.Drawing.Point(770, 419);
+ this.ButtonLeft.Name = "ButtonLeft";
+ this.ButtonLeft.Size = new System.Drawing.Size(30, 30);
+ this.ButtonLeft.TabIndex = 4;
+ this.ButtonLeft.UseVisualStyleBackColor = true;
+ this.ButtonLeft.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // ButtonUp
+ //
+ this.ButtonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.ButtonUp.BackgroundImage = global::GasolineTanker.Properties.Resources.up;
+ this.ButtonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.ButtonUp.Location = new System.Drawing.Point(806, 383);
+ this.ButtonUp.Name = "ButtonUp";
+ this.ButtonUp.Size = new System.Drawing.Size(30, 30);
+ this.ButtonUp.TabIndex = 5;
+ this.ButtonUp.UseVisualStyleBackColor = true;
+ this.ButtonUp.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // GasolineTanker
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Text = "Form1";
+ this.ClientSize = new System.Drawing.Size(884, 461);
+ this.Controls.Add(this.ButtonUp);
+ this.Controls.Add(this.ButtonLeft);
+ this.Controls.Add(this.ButtonDown);
+ this.Controls.Add(this.ButtonRight);
+ this.Controls.Add(this.ButtonCreate);
+ this.Controls.Add(this.PictureBoxGasolineTanker);
+ this.Name = "GasolineTanker";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "GasolineTanker";
+ ((System.ComponentModel.ISupportInitialize)(this.PictureBoxGasolineTanker)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
}
#endregion
+
+ private PictureBox PictureBoxGasolineTanker;
+ private Button ButtonCreate;
+ private Button ButtonRight;
+ private Button ButtonDown;
+ private Button ButtonLeft;
+ private Button ButtonUp;
}
}
\ No newline at end of file
diff --git a/GasolineTanker/GasolineTanker/Form1.cs b/GasolineTanker/GasolineTanker/Form1.cs
index da846e9..224dafa 100644
--- a/GasolineTanker/GasolineTanker/Form1.cs
+++ b/GasolineTanker/GasolineTanker/Form1.cs
@@ -1,10 +1,65 @@
namespace GasolineTanker
{
- public partial class Form1 : Form
+ public partial class GasolineTanker : Form
{
- public Form1()
+ private DrawningGasolineTanker? _drawningGasolineTanker;
+ public GasolineTanker()
{
InitializeComponent();
}
+ private void Draw()
+ {
+ if (_drawningGasolineTanker == null)
+ return;
+
+ Bitmap bmp = new(PictureBoxGasolineTanker.Width, PictureBoxGasolineTanker.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawningGasolineTanker.DrawTransport(gr);
+ PictureBoxGasolineTanker.Image = bmp;
+ }
+
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+
+ Random random = new();
+ _drawningGasolineTanker = new DrawningGasolineTanker();
+ _drawningGasolineTanker.Init(
+ random.Next(100, 300),
+ random.Next(1000, 3000),
+ 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)),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
+ PictureBoxGasolineTanker.Width, PictureBoxGasolineTanker.Height);
+ _drawningGasolineTanker.SetPosition(random.Next(10, 100),
+ random.Next(10, 100));
+
+ Draw();
+ }
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawningGasolineTanker == null)
+ {
+ return;
+ }
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "ButtonUp":
+ _drawningGasolineTanker.MoveTransport(Direction.Up);
+ break;
+ case "ButtonDown":
+ _drawningGasolineTanker.MoveTransport(Direction.Down);
+ break;
+ case "ButtonLeft":
+ _drawningGasolineTanker.MoveTransport(Direction.Left);
+ break;
+ case "ButtonRight":
+ _drawningGasolineTanker.MoveTransport(Direction.Right);
+ break;
+ }
+ Draw();
+ }
+
}
}
\ No newline at end of file
diff --git a/GasolineTanker/GasolineTanker/Form1.resx b/GasolineTanker/GasolineTanker/Form1.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/GasolineTanker/GasolineTanker/Form1.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/GasolineTanker/GasolineTanker/GasolineTanker.csproj b/GasolineTanker/GasolineTanker/GasolineTanker.csproj
index b57c89e..13ee123 100644
--- a/GasolineTanker/GasolineTanker/GasolineTanker.csproj
+++ b/GasolineTanker/GasolineTanker/GasolineTanker.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/GasolineTanker/GasolineTanker/Program.cs b/GasolineTanker/GasolineTanker/Program.cs
index feb86c7..1d3c138 100644
--- a/GasolineTanker/GasolineTanker/Program.cs
+++ b/GasolineTanker/GasolineTanker/Program.cs
@@ -11,7 +11,7 @@ namespace GasolineTanker
// 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 GasolineTanker());
}
}
}
\ No newline at end of file
diff --git a/GasolineTanker/GasolineTanker/Properties/Resources.Designer.cs b/GasolineTanker/GasolineTanker/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..8d2c2a7
--- /dev/null
+++ b/GasolineTanker/GasolineTanker/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace GasolineTanker.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("GasolineTanker.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/GasolineTanker/GasolineTanker/Properties/Resources.resx b/GasolineTanker/GasolineTanker/Properties/Resources.resx
new file mode 100644
index 0000000..53ec0b4
--- /dev/null
+++ b/GasolineTanker/GasolineTanker/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\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/GasolineTanker/GasolineTanker/Resources/down.png b/GasolineTanker/GasolineTanker/Resources/down.png
new file mode 100644
index 0000000..c49c770
Binary files /dev/null and b/GasolineTanker/GasolineTanker/Resources/down.png differ
diff --git a/GasolineTanker/GasolineTanker/Resources/left.png b/GasolineTanker/GasolineTanker/Resources/left.png
new file mode 100644
index 0000000..42e3bd8
Binary files /dev/null and b/GasolineTanker/GasolineTanker/Resources/left.png differ
diff --git a/GasolineTanker/GasolineTanker/Resources/right.png b/GasolineTanker/GasolineTanker/Resources/right.png
new file mode 100644
index 0000000..5da511f
Binary files /dev/null and b/GasolineTanker/GasolineTanker/Resources/right.png differ
diff --git a/GasolineTanker/GasolineTanker/Resources/up.png b/GasolineTanker/GasolineTanker/Resources/up.png
new file mode 100644
index 0000000..9b45905
Binary files /dev/null and b/GasolineTanker/GasolineTanker/Resources/up.png differ