diff --git a/.gitignore b/.gitignore
index 8e7a151..520d2b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -398,3 +398,4 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml
+/Locomotive/source
diff --git a/Locomotive/Locomotive/Direction.cs b/Locomotive/Locomotive/Direction.cs
new file mode 100644
index 0000000..c9c339e
--- /dev/null
+++ b/Locomotive/Locomotive/Direction.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Locomotive
+{
+ //Направление перемещения
+ internal enum Direction
+ {
+ Up = 1,
+ Down = 2,
+ Left = 3,
+ Right = 4,
+ }
+}
diff --git a/Locomotive/Locomotive/DrawningLocomotive.cs b/Locomotive/Locomotive/DrawningLocomotive.cs
new file mode 100644
index 0000000..08935ab
--- /dev/null
+++ b/Locomotive/Locomotive/DrawningLocomotive.cs
@@ -0,0 +1,138 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Locomotive
+{
+ //Класс, отвечающий за отрисовку
+ internal class DrawningLocomotive
+ {
+ /// Класс-сущность
+ public EntityLocomotive Locomotive { get; private set; }
+ /// Левая координата отрисовки локомотива
+ private float _startPosX;
+ /// Верхняя координата отрисовки локомотива
+ private float _startPosY;
+ /// Ширина окна отрисовки
+ private int? _pictureWidth = null;
+ /// Высота окна отрисовки
+ private int? _pictureHeight = null;
+ /// Ширина отрисовки локомотива
+ private readonly int _locomotiveWidth = 110;
+ /// Высота отрисовки локомотива
+ private readonly int _locomotiveHeight = 50;
+
+ /// Инициализация свойств
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Locomotive = new EntityLocomotive();
+ Locomotive.Init(speed, weight, bodyColor);
+ }
+ /// Установка позиции локомотива
+ public void SetPosition(int x, int y, int width, int height)
+ {
+ if (x < 0 || x + _locomotiveWidth >= width)
+ {
+ return;
+ }
+ if (y < 0 || y + _locomotiveHeight >= height)
+ {
+ return;
+ }
+ _startPosX = x;
+ _startPosY = y;
+ _pictureWidth = width;
+ _pictureHeight = height;
+ }
+
+ public void MoveTransport(Direction direction)
+ {
+ if (!_pictureWidth.HasValue || !_pictureHeight.HasValue)
+ {
+ return;
+ }
+ switch (direction)
+ {
+ // вправо
+ case Direction.Right:
+ if (_startPosX + _locomotiveWidth + Locomotive.Step < _pictureWidth)
+ {
+ _startPosX += Locomotive.Step;
+ }
+ else _startPosX = (int)_pictureWidth - _locomotiveWidth;
+ break;
+ //влево
+ case Direction.Left:
+ if (_startPosX - Locomotive.Step >= 0)
+ {
+ _startPosX -= Locomotive.Step;
+ }
+ else _startPosX = 0;
+ break;
+ //вверх
+ case Direction.Up:
+ if (_startPosY - Locomotive.Step >= 0)
+ {
+ _startPosY -= Locomotive.Step;
+ }
+ else _startPosY = 0;
+ break;
+ //вниз
+ case Direction.Down:
+ if (_startPosY + _locomotiveHeight + Locomotive.Step < _pictureHeight)
+ {
+ _startPosY += Locomotive.Step;
+ }
+ else _startPosY = (int)_pictureHeight - _locomotiveHeight;
+ break;
+ }
+ }
+
+ public void DrawTransport(Graphics g)
+ {
+ if (_startPosX < 0 || _startPosY < 0
+ || !_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+ Pen pen = new(Color.Black);
+ //тело
+ g.DrawRectangle(pen, _startPosX , _startPosY, _locomotiveWidth - 10, _locomotiveHeight - 10);
+ //окна
+ g.FillRectangle(new SolidBrush(Locomotive?.BodyColor ?? Color.Black), _startPosX + 10, _startPosY + 10, 10, 10);
+ g.FillRectangle(new SolidBrush(Locomotive?.BodyColor ?? Color.Black), _startPosX + 30, _startPosY + 10, 10, 10);
+ g.FillRectangle(new SolidBrush(Locomotive?.BodyColor ?? Color.Black), _startPosX + 80, _startPosY + 10, 10, 10);
+ //дверь
+ g.DrawRectangle(pen, _startPosX + 50, _startPosY + 10, 10, 20);
+ //колеса
+ g.DrawEllipse(pen, _startPosX, _startPosY + 40, 10, 10);
+ g.DrawEllipse(pen, _startPosX + 20, _startPosY + 40, 10, 10);
+ g.DrawEllipse(pen, _startPosX + 70, _startPosY + 40, 10, 10);
+ g.DrawEllipse(pen, _startPosX + 90, _startPosY + 40, 10, 10);
+ //черный прямоугольник
+ g.FillRectangle(new SolidBrush(Locomotive?.BodyColor ?? Color.Black), _startPosX + 100, _startPosY + 10, 10, 30);
+ }
+
+ public void ChangeBorders(int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureWidth <= _locomotiveWidth || _pictureHeight <= _locomotiveHeight)
+ {
+ _pictureWidth = null;
+ _pictureHeight = null;
+ return;
+ }
+ if (_startPosX + _locomotiveWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth.Value - _locomotiveWidth;
+ }
+ if (_startPosY + _locomotiveHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight.Value - _locomotiveHeight;
+ }
+ }
+ }
+}
diff --git a/Locomotive/Locomotive/EntityLocomotive.cs b/Locomotive/Locomotive/EntityLocomotive.cs
new file mode 100644
index 0000000..1e407d0
--- /dev/null
+++ b/Locomotive/Locomotive/EntityLocomotive.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Locomotive
+{
+ internal class EntityLocomotive
+ {
+ /// Скорость
+ public int Speed { get; private set; }
+ /// Вес
+ public float Weight { get; private set; }
+ /// Цвет
+ public Color BodyColor { get; private set; }
+ /// Шаг перемещения локомотива
+ public float Step => Speed * 100 / Weight;
+
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Random rnd = new();
+ Speed = speed <= 0 ? rnd.Next(50, 150) : speed;
+ Weight = weight <= 0 ? rnd.Next(40, 70) : weight;
+ BodyColor = bodyColor;
+ }
+ }
+}
diff --git a/Locomotive/Locomotive/Form1.Designer.cs b/Locomotive/Locomotive/Form1.Designer.cs
deleted file mode 100644
index 406617d..0000000
--- a/Locomotive/Locomotive/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace Locomotive
-{
- 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/Locomotive/Locomotive/Form1.cs b/Locomotive/Locomotive/Form1.cs
deleted file mode 100644
index c96f8c0..0000000
--- a/Locomotive/Locomotive/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace Locomotive
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/Locomotive/Locomotive/FormLocomotive.Designer.cs b/Locomotive/Locomotive/FormLocomotive.Designer.cs
new file mode 100644
index 0000000..0ca27bc
--- /dev/null
+++ b/Locomotive/Locomotive/FormLocomotive.Designer.cs
@@ -0,0 +1,182 @@
+namespace Locomotive
+{
+ partial class FormLocomotive
+ {
+ ///
+ /// 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.pictureBoxLocomotive = 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.buttonCreate = new System.Windows.Forms.Button();
+ this.buttonUp = new System.Windows.Forms.Button();
+ this.buttonLeft = new System.Windows.Forms.Button();
+ this.buttonDown = new System.Windows.Forms.Button();
+ this.buttonRight = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxLocomotive)).BeginInit();
+ this.statusStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // pictureBoxLocomotive
+ //
+ this.pictureBoxLocomotive.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pictureBoxLocomotive.Location = new System.Drawing.Point(0, 0);
+ this.pictureBoxLocomotive.Name = "pictureBoxLocomotive";
+ this.pictureBoxLocomotive.Size = new System.Drawing.Size(778, 416);
+ this.pictureBoxLocomotive.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBoxLocomotive.TabIndex = 0;
+ this.pictureBoxLocomotive.TabStop = false;
+ //this.pictureBoxLocomotive.Click += new System.EventHandler(this.pictureBoxLocomotive_Click);
+ this.pictureBoxLocomotive.Resize += new System.EventHandler(this.pictureBoxLocomotive_Resize);
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabelSpeed,
+ this.toolStripStatusLabelWeight,
+ this.toolStripStatusLabelColor});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 416);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(778, 26);
+ this.statusStrip1.TabIndex = 1;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // toolStripStatusLabelSpeed
+ //
+ this.toolStripStatusLabelSpeed.Name = "toolStripStatusLabelSpeed";
+ this.toolStripStatusLabelSpeed.Size = new System.Drawing.Size(51, 20);
+ this.toolStripStatusLabelSpeed.Text = "Speed";
+ //
+ // toolStripStatusLabelWeight
+ //
+ this.toolStripStatusLabelWeight.Name = "toolStripStatusLabelWeight";
+ this.toolStripStatusLabelWeight.Size = new System.Drawing.Size(56, 20);
+ this.toolStripStatusLabelWeight.Text = "Weight";
+ //
+ // toolStripStatusLabelColor
+ //
+ this.toolStripStatusLabelColor.Name = "toolStripStatusLabelColor";
+ this.toolStripStatusLabelColor.Size = new System.Drawing.Size(45, 20);
+ this.toolStripStatusLabelColor.Text = "Color";
+ //
+ // 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, 377);
+ this.buttonCreate.Name = "buttonCreate";
+ this.buttonCreate.Size = new System.Drawing.Size(94, 29);
+ this.buttonCreate.TabIndex = 2;
+ this.buttonCreate.Text = "Create ";
+ this.buttonCreate.UseVisualStyleBackColor = true;
+ this.buttonCreate.Click += new System.EventHandler(this.buttonCreate_Click);
+ //
+ // buttonUp
+ //
+ this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonUp.BackgroundImage = global::Locomotive.Properties.Resources.up_arrow;
+ this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonUp.Location = new System.Drawing.Point(680, 320);
+ this.buttonUp.Name = "buttonUp";
+ this.buttonUp.Size = new System.Drawing.Size(40, 40);
+ this.buttonUp.TabIndex = 3;
+ this.buttonUp.UseVisualStyleBackColor = true;
+ this.buttonUp.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::Locomotive.Properties.Resources.left_arrow;
+ this.buttonLeft.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonLeft.Location = new System.Drawing.Point(634, 366);
+ this.buttonLeft.Name = "buttonLeft";
+ this.buttonLeft.Size = new System.Drawing.Size(40, 40);
+ this.buttonLeft.TabIndex = 4;
+ this.buttonLeft.UseVisualStyleBackColor = true;
+ this.buttonLeft.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // buttonDown
+ //
+ this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonDown.BackgroundImage = global::Locomotive.Properties.Resources.down_arrow;
+ this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonDown.Location = new System.Drawing.Point(680, 366);
+ this.buttonDown.Name = "buttonDown";
+ this.buttonDown.Size = new System.Drawing.Size(40, 40);
+ this.buttonDown.TabIndex = 5;
+ this.buttonDown.UseVisualStyleBackColor = true;
+ this.buttonDown.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // buttonRight
+ //
+ this.buttonRight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonRight.BackgroundImage = global::Locomotive.Properties.Resources.right_arrow;
+ this.buttonRight.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.buttonRight.Location = new System.Drawing.Point(726, 366);
+ this.buttonRight.Name = "buttonRight";
+ this.buttonRight.Size = new System.Drawing.Size(40, 40);
+ this.buttonRight.TabIndex = 6;
+ this.buttonRight.UseVisualStyleBackColor = true;
+ this.buttonRight.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // FormLocomotive
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(778, 442);
+ this.Controls.Add(this.buttonRight);
+ this.Controls.Add(this.buttonDown);
+ this.Controls.Add(this.buttonLeft);
+ this.Controls.Add(this.buttonUp);
+ this.Controls.Add(this.buttonCreate);
+ this.Controls.Add(this.pictureBoxLocomotive);
+ this.Controls.Add(this.statusStrip1);
+ this.Name = "FormLocomotive";
+ this.Text = "Locomotive";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxLocomotive)).EndInit();
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxLocomotive;
+ private StatusStrip statusStrip1;
+ private ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private ToolStripStatusLabel toolStripStatusLabelWeight;
+ private ToolStripStatusLabel toolStripStatusLabelColor;
+ private Button buttonCreate;
+ private Button buttonUp;
+ private Button buttonLeft;
+ private Button buttonDown;
+ private Button buttonRight;
+ }
+}
\ No newline at end of file
diff --git a/Locomotive/Locomotive/FormLocomotive.cs b/Locomotive/Locomotive/FormLocomotive.cs
new file mode 100644
index 0000000..8bd2853
--- /dev/null
+++ b/Locomotive/Locomotive/FormLocomotive.cs
@@ -0,0 +1,62 @@
+namespace Locomotive
+{
+ public partial class FormLocomotive : Form
+ {
+ private DrawningLocomotive _locomotive;
+
+ public FormLocomotive()
+ {
+ InitializeComponent();
+ }
+
+ ///
+ private void Draw()
+ {
+ Bitmap bmp = new(pictureBoxLocomotive.Width, pictureBoxLocomotive.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _locomotive?.DrawTransport(gr);
+ pictureBoxLocomotive.Image = bmp;
+ }
+
+ private void buttonCreate_Click(object sender, EventArgs e)
+ {
+ Random rnd = new();
+ _locomotive = new DrawningLocomotive();
+ _locomotive.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
+ _locomotive.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxLocomotive.Width, pictureBoxLocomotive.Height);
+ toolStripStatusLabelSpeed.Text = $"Speed: {_locomotive.Locomotive.Speed}";
+ toolStripStatusLabelWeight.Text = $"Weight: {_locomotive.Locomotive.Weight}";
+ toolStripStatusLabelColor.Text = $"Color: {_locomotive.Locomotive.BodyColor.Name}";
+ Draw();
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ //
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _locomotive?.MoveTransport(Direction.Up);
+ break;
+ case "buttonDown":
+ _locomotive?.MoveTransport(Direction.Down);
+ break;
+ case "buttonLeft":
+ _locomotive?.MoveTransport(Direction.Left);
+ break;
+ case "buttonRight":
+ _locomotive?.MoveTransport(Direction.Right);
+ break;
+ }
+ Draw();
+ }
+
+ private void pictureBoxLocomotive_Click() { }
+ private void pictureBoxLocomotive_Resize(object sender, EventArgs e)
+ {
+ _locomotive?.ChangeBorders(pictureBoxLocomotive.Width, pictureBoxLocomotive.Height);
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Locomotive/Locomotive/FormLocomotive.resx b/Locomotive/Locomotive/FormLocomotive.resx
new file mode 100644
index 0000000..5cb320f
--- /dev/null
+++ b/Locomotive/Locomotive/FormLocomotive.resx
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/Locomotive/Locomotive/Locomotive.csproj b/Locomotive/Locomotive/Locomotive.csproj
index b57c89e..13ee123 100644
--- a/Locomotive/Locomotive/Locomotive.csproj
+++ b/Locomotive/Locomotive/Locomotive.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/Locomotive/Locomotive/Program.cs b/Locomotive/Locomotive/Program.cs
index 1b9db46..36de08b 100644
--- a/Locomotive/Locomotive/Program.cs
+++ b/Locomotive/Locomotive/Program.cs
@@ -11,7 +11,7 @@ namespace Locomotive
// 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 FormLocomotive());
}
}
}
\ No newline at end of file
diff --git a/Locomotive/Locomotive/Properties/Resources.Designer.cs b/Locomotive/Locomotive/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..ad0b884
--- /dev/null
+++ b/Locomotive/Locomotive/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Locomotive.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [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() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [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("Locomotive.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap down_arrow {
+ get {
+ object obj = ResourceManager.GetObject("down-arrow", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap left_arrow {
+ get {
+ object obj = ResourceManager.GetObject("left-arrow", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap right_arrow {
+ get {
+ object obj = ResourceManager.GetObject("right-arrow", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap up_arrow {
+ get {
+ object obj = ResourceManager.GetObject("up-arrow", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/Locomotive/Locomotive/Form1.resx b/Locomotive/Locomotive/Properties/Resources.resx
similarity index 83%
rename from Locomotive/Locomotive/Form1.resx
rename to Locomotive/Locomotive/Properties/Resources.resx
index 1af7de1..62f89c1 100644
--- a/Locomotive/Locomotive/Form1.resx
+++ b/Locomotive/Locomotive/Properties/Resources.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\down-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\left-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\right-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\up-arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/Locomotive/Locomotive/Resources/down-arrow.png b/Locomotive/Locomotive/Resources/down-arrow.png
new file mode 100644
index 0000000..f29232b
Binary files /dev/null and b/Locomotive/Locomotive/Resources/down-arrow.png differ
diff --git a/Locomotive/Locomotive/Resources/left-arrow.png b/Locomotive/Locomotive/Resources/left-arrow.png
new file mode 100644
index 0000000..8176032
Binary files /dev/null and b/Locomotive/Locomotive/Resources/left-arrow.png differ
diff --git a/Locomotive/Locomotive/Resources/right-arrow.png b/Locomotive/Locomotive/Resources/right-arrow.png
new file mode 100644
index 0000000..f224f62
Binary files /dev/null and b/Locomotive/Locomotive/Resources/right-arrow.png differ
diff --git a/Locomotive/Locomotive/Resources/up-arrow.png b/Locomotive/Locomotive/Resources/up-arrow.png
new file mode 100644
index 0000000..a5a61c2
Binary files /dev/null and b/Locomotive/Locomotive/Resources/up-arrow.png differ