diff --git a/DoubleDeckerBus/DoubleDeckerBus/Direction.cs b/DoubleDeckerBus/DoubleDeckerBus/Direction.cs
new file mode 100644
index 0000000..dab6276
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/Direction.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DoubleDeckerBus
+{
+ internal enum Direction
+ {
+ None = 0,
+ Up = 1,
+ Down = 2,
+ Left = 3,
+ Right = 4
+ }
+}
diff --git a/DoubleDeckerBus/DoubleDeckerBus/DoubleDeckerBus.csproj b/DoubleDeckerBus/DoubleDeckerBus/DoubleDeckerBus.csproj
index b57c89e..13ee123 100644
--- a/DoubleDeckerBus/DoubleDeckerBus/DoubleDeckerBus.csproj
+++ b/DoubleDeckerBus/DoubleDeckerBus/DoubleDeckerBus.csproj
@@ -8,4 +8,19 @@
enable
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/DrawingBus.cs b/DoubleDeckerBus/DoubleDeckerBus/DrawingBus.cs
new file mode 100644
index 0000000..a25f495
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/DrawingBus.cs
@@ -0,0 +1,133 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DoubleDeckerBus
+{
+ internal class DrawingBus
+ {
+ public EntityBus Bus { get; private set; }
+
+ private float _startPosX;
+ private float _startPosY;
+ private int? _pictureWidth = null;
+ private int? _pictureHeight = null;
+ private readonly int _busWidth = 100;
+ private readonly int _busHeight = 50;
+
+ public void Init(int speed, float weight, Color bodyColor)
+ {
+ Bus = new EntityBus();
+ Bus.Init(speed, weight, bodyColor);
+ }
+
+ public void SetPosition(int x, int y, int width, int height)
+ {
+ if (_pictureWidth <= _busWidth || _pictureHeight <= _busHeight)
+ {
+ _pictureWidth = null;
+ _pictureHeight = null;
+ 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 + _busWidth + Bus.Step < _pictureWidth)
+ {
+ _startPosX += Bus.Step;
+ }
+ break;
+ case Direction.Left:
+ if (_startPosX - Bus.Step >= 0)
+ {
+ _startPosX -= Bus.Step;
+ }
+ break;
+ case Direction.Up:
+ if (_startPosY - Bus.Step >= 0)
+ {
+ _startPosY -= Bus.Step;
+ }
+ break;
+ case Direction.Down:
+ if (_startPosY + _busHeight + Bus.Step < _pictureHeight)
+ {
+ _startPosY += Bus.Step;
+ }
+ 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 + 10, _startPosY + 10, 150, 50);
+
+ //кузов
+ Brush br = new SolidBrush(Bus?.BodyColor ?? Color.Black);
+ g.FillRectangle(br, _startPosX + 11, _startPosY + 11, 149, 49);
+ //колеса
+ Brush brBlack = new SolidBrush(Color.Black);
+ g.FillEllipse(brBlack, _startPosX + 20, _startPosY + 50, 20, 20);
+ g.FillEllipse(brBlack, _startPosX + 130, _startPosY + 50, 20, 20);
+ Brush brGray = new SolidBrush(Color.Gray);
+ g.FillEllipse(brGray, _startPosX + 25, _startPosY + 55, 10, 10);
+ g.FillEllipse(brGray, _startPosX + 135, _startPosY + 55, 10, 10);
+
+ //стекла
+ Brush brBlue = new SolidBrush(Color.LightBlue);
+ g.FillRectangle(brBlue, _startPosX + 10, _startPosY + 20, 10, 20);
+ g.DrawRectangle(pen, _startPosX + 10, _startPosY + 20, 10, 20);
+ g.FillRectangle(brBlue, _startPosX + 30, _startPosY + 20, 30, 20);
+ g.DrawRectangle(pen, _startPosX + 30, _startPosY + 20, 30, 20);
+ g.FillRectangle(brBlue, _startPosX + 70, _startPosY + 20, 15, 40);
+ g.DrawRectangle(pen, _startPosX + 70, _startPosY + 20, 15, 40);
+ g.FillRectangle(brBlue, _startPosX + 85, _startPosY + 20, 15, 40);
+ g.DrawRectangle(pen, _startPosX + 85, _startPosY + 20, 15, 40);
+ g.FillRectangle(brBlue, _startPosX + 110, _startPosY + 20, 30, 20);
+ g.DrawRectangle(pen, _startPosX + 110, _startPosY + 20, 30, 20);
+ g.FillRectangle(brBlue, _startPosX + 150, _startPosY + 20, 10, 20);
+ g.DrawRectangle(pen, _startPosX + 150, _startPosY + 20, 10, 20);
+
+ }
+
+ public void ChangeBorders(int width, int height)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_pictureWidth <= _busWidth || _pictureHeight <= _busHeight)
+ {
+ _pictureWidth = null;
+ _pictureHeight = null;
+ return;
+ }
+ if (_startPosX + _busWidth > _pictureWidth)
+ {
+ _startPosX = _pictureWidth.Value - _busWidth;
+ }
+ if (_startPosY + _busHeight > _pictureHeight)
+ {
+ _startPosY = _pictureHeight.Value - _busHeight;
+ }
+ }
+ }
+}
diff --git a/DoubleDeckerBus/DoubleDeckerBus/EntityBus.cs b/DoubleDeckerBus/DoubleDeckerBus/EntityBus.cs
new file mode 100644
index 0000000..7c73c54
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/EntityBus.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DoubleDeckerBus
+{
+ internal class EntityBus
+ {
+ 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 Random();
+ Speed = speed <= 0 ? rnd.Next(50, 150) : speed;
+ Weight = weight <= 0 ? rnd.Next(40, 70) : weight;
+ BodyColor = bodyColor;
+ }
+ }
+}
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Form1.Designer.cs b/DoubleDeckerBus/DoubleDeckerBus/Form1.Designer.cs
deleted file mode 100644
index 3ca1fa2..0000000
--- a/DoubleDeckerBus/DoubleDeckerBus/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace DoubleDeckerBus
-{
- 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/DoubleDeckerBus/DoubleDeckerBus/Form1.cs b/DoubleDeckerBus/DoubleDeckerBus/Form1.cs
deleted file mode 100644
index fd2d1d7..0000000
--- a/DoubleDeckerBus/DoubleDeckerBus/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace DoubleDeckerBus
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/FormBus.Designer.cs b/DoubleDeckerBus/DoubleDeckerBus/FormBus.Designer.cs
new file mode 100644
index 0000000..2760e72
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/FormBus.Designer.cs
@@ -0,0 +1,182 @@
+namespace DoubleDeckerBus
+{
+ partial class FormBus
+ {
+ ///
+ /// 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.pictureBoxBus = 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.toolStripStatusLabelBodyColor = new System.Windows.Forms.ToolStripStatusLabel();
+ this.buttonCreate = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.button3 = new System.Windows.Forms.Button();
+ this.button4 = new System.Windows.Forms.Button();
+ this.button5 = new System.Windows.Forms.Button();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBus)).BeginInit();
+ this.statusStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // pictureBoxBus
+ //
+ this.pictureBoxBus.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pictureBoxBus.Location = new System.Drawing.Point(0, 0);
+ this.pictureBoxBus.Name = "pictureBoxBus";
+ this.pictureBoxBus.Size = new System.Drawing.Size(810, 456);
+ this.pictureBoxBus.TabIndex = 0;
+ this.pictureBoxBus.TabStop = false;
+ this.pictureBoxBus.Click += new System.EventHandler(this.ButtonMove_Click);
+ this.pictureBoxBus.Resize += new System.EventHandler(this.PictureBoxBus_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.toolStripStatusLabelBodyColor});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 456);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Size = new System.Drawing.Size(810, 26);
+ this.statusStrip1.TabIndex = 1;
+ this.statusStrip1.Text = "statusStrip1";
+ //
+ // toolStripStatusLabelSpeed
+ //
+ this.toolStripStatusLabelSpeed.Name = "toolStripStatusLabelSpeed";
+ this.toolStripStatusLabelSpeed.Size = new System.Drawing.Size(76, 20);
+ this.toolStripStatusLabelSpeed.Text = "Скорость:";
+ //
+ // toolStripStatusLabelWeight
+ //
+ this.toolStripStatusLabelWeight.Name = "toolStripStatusLabelWeight";
+ this.toolStripStatusLabelWeight.Size = new System.Drawing.Size(36, 20);
+ this.toolStripStatusLabelWeight.Text = "Вес:";
+ //
+ // toolStripStatusLabelBodyColor
+ //
+ this.toolStripStatusLabelBodyColor.Name = "toolStripStatusLabelBodyColor";
+ this.toolStripStatusLabelBodyColor.Size = new System.Drawing.Size(45, 20);
+ this.toolStripStatusLabelBodyColor.Text = "Цвет:";
+ //
+ // buttonCreate
+ //
+ this.buttonCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.buttonCreate.BackColor = System.Drawing.SystemColors.HotTrack;
+ this.buttonCreate.Location = new System.Drawing.Point(12, 395);
+ this.buttonCreate.Name = "buttonCreate";
+ this.buttonCreate.Size = new System.Drawing.Size(162, 48);
+ this.buttonCreate.TabIndex = 2;
+ this.buttonCreate.Text = "Создать";
+ this.buttonCreate.UseVisualStyleBackColor = false;
+ this.buttonCreate.Click += new System.EventHandler(this.ButtonCreate_Click);
+ //
+ // button2
+ //
+ this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.button2.BackgroundImage = global::DoubleDeckerBus.Properties.Resources.Frame_6;
+ this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.button2.Location = new System.Drawing.Point(662, 398);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(45, 45);
+ this.button2.TabIndex = 3;
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // button3
+ //
+ this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.button3.BackgroundImage = global::DoubleDeckerBus.Properties.Resources.Frame_5;
+ this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.button3.Location = new System.Drawing.Point(708, 398);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(45, 45);
+ this.button3.TabIndex = 4;
+ this.button3.UseVisualStyleBackColor = true;
+ this.button3.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // button4
+ //
+ this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.button4.BackgroundImage = global::DoubleDeckerBus.Properties.Resources.Frame_4;
+ this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.button4.Location = new System.Drawing.Point(753, 398);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(45, 45);
+ this.button4.TabIndex = 5;
+ this.button4.UseVisualStyleBackColor = true;
+ this.button4.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // button5
+ //
+ this.button5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.button5.BackgroundImage = global::DoubleDeckerBus.Properties.Resources.Frame_3;
+ this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.button5.Location = new System.Drawing.Point(708, 353);
+ this.button5.Name = "button5";
+ this.button5.Size = new System.Drawing.Size(45, 45);
+ this.button5.TabIndex = 6;
+ this.button5.UseVisualStyleBackColor = true;
+ this.button5.Click += new System.EventHandler(this.ButtonMove_Click);
+ //
+ // FormBus
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(810, 482);
+ this.Controls.Add(this.button5);
+ this.Controls.Add(this.button4);
+ this.Controls.Add(this.button3);
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.buttonCreate);
+ this.Controls.Add(this.pictureBoxBus);
+ this.Controls.Add(this.statusStrip1);
+ this.Name = "FormBus";
+ this.Text = "Автобус";
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBus)).EndInit();
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private PictureBox pictureBoxBus;
+ private StatusStrip statusStrip1;
+ private ToolStripStatusLabel toolStripStatusLabelSpeed;
+ private ToolStripStatusLabel toolStripStatusLabelWeight;
+ private ToolStripStatusLabel toolStripStatusLabelBodyColor;
+ private Button buttonCreate;
+ private Button button2;
+ private Button button3;
+ private Button button4;
+ private Button button5;
+ }
+}
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/FormBus.cs b/DoubleDeckerBus/DoubleDeckerBus/FormBus.cs
new file mode 100644
index 0000000..f193c67
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/FormBus.cs
@@ -0,0 +1,58 @@
+namespace DoubleDeckerBus
+{
+ public partial class FormBus : Form
+ {
+ private DrawingBus _bus;
+ public FormBus()
+ {
+ InitializeComponent();
+ }
+
+ private void Draw()
+ {
+ Bitmap bmp = new(pictureBoxBus.Width, pictureBoxBus.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _bus?.DrawTransport(gr);
+ pictureBoxBus.Image = bmp;
+ }
+
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random rnd = new();
+ _bus = new DrawingBus();
+ _bus.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
+ _bus.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxBus.Width, pictureBoxBus.Height);
+ toolStripStatusLabelSpeed.Text = $": {_bus.Bus.Speed}";
+ toolStripStatusLabelWeight.Text = $": {_bus.Bus.Weight}";
+ toolStripStatusLabelBodyColor.Text = $": {_bus.Bus.BodyColor.Name}";
+ Draw();
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ switch (name)
+ {
+ case "buttonUp":
+ _bus?.MoveTransport(Direction.Up);
+ break;
+ case "buttonDown":
+ _bus?.MoveTransport(Direction.Down);
+ break;
+ case "buttonLeft":
+ _bus?.MoveTransport(Direction.Left);
+ break;
+ case "buttonRight":
+ _bus?.MoveTransport(Direction.Right);
+ break;
+ }
+ Draw();
+ }
+
+ private void PictureBoxBus_Resize(object sender, EventArgs e)
+ {
+ _bus?.ChangeBorders(pictureBoxBus.Width, pictureBoxBus.Height);
+ Draw();
+ }
+ }
+}
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/FormBus.resx b/DoubleDeckerBus/DoubleDeckerBus/FormBus.resx
new file mode 100644
index 0000000..70b7ea9
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/FormBus.resx
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ 87
+
+
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Program.cs b/DoubleDeckerBus/DoubleDeckerBus/Program.cs
index 1cce65b..cecbba3 100644
--- a/DoubleDeckerBus/DoubleDeckerBus/Program.cs
+++ b/DoubleDeckerBus/DoubleDeckerBus/Program.cs
@@ -11,7 +11,7 @@ namespace DoubleDeckerBus
// 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 FormBus());
}
}
}
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Properties/Resources.Designer.cs b/DoubleDeckerBus/DoubleDeckerBus/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..9530c41
--- /dev/null
+++ b/DoubleDeckerBus/DoubleDeckerBus/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace DoubleDeckerBus.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("DoubleDeckerBus.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 Frame_3 {
+ get {
+ object obj = ResourceManager.GetObject("Frame 3", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Frame_4 {
+ get {
+ object obj = ResourceManager.GetObject("Frame 4", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Frame_5 {
+ get {
+ object obj = ResourceManager.GetObject("Frame 5", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Frame_6 {
+ get {
+ object obj = ResourceManager.GetObject("Frame 6", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Form1.resx b/DoubleDeckerBus/DoubleDeckerBus/Properties/Resources.resx
similarity index 83%
rename from DoubleDeckerBus/DoubleDeckerBus/Form1.resx
rename to DoubleDeckerBus/DoubleDeckerBus/Properties/Resources.resx
index 1af7de1..3e48675 100644
--- a/DoubleDeckerBus/DoubleDeckerBus/Form1.resx
+++ b/DoubleDeckerBus/DoubleDeckerBus/Properties/Resources.resx
@@ -117,4 +117,17 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\Frame 3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Frame 4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Frame 5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Frame 6.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 3.png b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 3.png
new file mode 100644
index 0000000..9d0e33b
Binary files /dev/null and b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 3.png differ
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 4.png b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 4.png
new file mode 100644
index 0000000..1e84516
Binary files /dev/null and b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 4.png differ
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 5.png b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 5.png
new file mode 100644
index 0000000..2f917da
Binary files /dev/null and b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 5.png differ
diff --git a/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 6.png b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 6.png
new file mode 100644
index 0000000..1870bc6
Binary files /dev/null and b/DoubleDeckerBus/DoubleDeckerBus/Resources/Frame 6.png differ