diff --git a/lab_0/DirectionType.cs b/lab_0/DirectionType.cs
new file mode 100644
index 0000000..0fab0ff
--- /dev/null
+++ b/lab_0/DirectionType.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjectBus;
+
+public enum DirectionType
+{
+ ///
+ /// Вверх
+ ///
+ Up = 1,
+ ///
+ /// Вниз
+ ///
+ Down = 2,
+ ///
+ /// Влево
+ ///
+ Left = 3,
+ ///
+ /// Вправо
+ ///
+ Right = 4
+}
diff --git a/lab_0/DrawingBus.cs b/lab_0/DrawingBus.cs
new file mode 100644
index 0000000..24592a5
--- /dev/null
+++ b/lab_0/DrawingBus.cs
@@ -0,0 +1,306 @@
+namespace ProjectBus;
+
+///
+/// Класс, отвечающий за прорисовку и перемещение объекта-сущности
+///
+
+public class DrawingBus
+{
+ ///
+ /// Класс-сущность
+ ///
+ public EntityBus? EntityBus { get; private set; }
+
+ ///
+ /// Ширина окна
+ ///
+ private int? _pictureWidth;
+
+ ///
+ /// Высота окна
+ ///
+ private int? _pictureHeight;
+
+ ///
+ /// Левая координата прорисовки автобуса
+ ///
+ private int? _startPosX;
+
+ ///
+ /// Верхняя кооридната прорисовки автобуса
+ ///
+ private int? _startPosY;
+
+
+ ///
+ /// /// Ширина прорисовки автобуса
+ /// ///
+ private readonly int _drawningBusWidth = 310;
+
+ ///
+ /// Высота прорисовки автобуса
+ ///
+ private readonly int _drawningBusHeight = 52;
+
+ ///
+ /// Инициализация свойств
+ ///
+ /// Скорость
+ /// Вес
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия дополнительного отсека
+ /// Признак наличия гармошки
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool additionalCompartment, bool accordion, bool v)
+ {
+ EntityBus = new EntityBus();
+ EntityBus.Init(speed, weight, bodyColor, additionalColor, additionalCompartment, accordion);
+ _pictureWidth = null;
+ _pictureHeight = null;
+ _startPosX = null;
+ _startPosY = null;
+ }
+
+ ///
+ /// Установка границ поля
+ ///
+ /// Ширина поля
+ /// Высота поля
+ /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах
+ //public bool SetPictureSize(int width, int height)
+ //{
+ // // TODO проверка, что объект "влезает" в размеры поля
+ // // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена
+
+ // _pictureWidth = width;
+ // _pictureHeight = height;
+
+ // return true;
+ //}
+ public bool SetPictureSize(int width, int height)
+ {
+ if (width >= _drawningBusWidth && height >= _drawningBusWidth)
+ {
+ _pictureWidth = width;
+ _pictureHeight = height;
+ if (_startPosX.HasValue && _startPosY.HasValue)
+ {
+ SetPosition(_startPosX.Value, _startPosY.Value);
+ }
+ return true;
+ }
+
+
+ return false;
+ }
+
+ ///
+ /// Установка позиции
+ ///
+ /// Координата X
+ /// Координата Y
+ //public void SetPosition(int x, int y)
+ //{
+ // if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ // {
+ // return;
+ // }
+
+
+
+ // _startPosX = x;
+ // _startPosY = y;
+ //}
+
+ public void SetPosition(int x, int y)
+ {
+ if (!_pictureHeight.HasValue || !_pictureWidth.HasValue)
+ {
+ return;
+ }
+
+ if (x < 0)
+ {
+ x = 0;
+ }
+ else if (x > _pictureWidth.Value - _drawningBusWidth)
+ {
+ x = _pictureWidth.Value - _drawningBusWidth;
+ }
+
+ if (y < 0)
+ {
+ y = 0;
+ }
+ else if (y > _pictureHeight.Value - _drawningBusHeight)
+ {
+ y = _pictureHeight.Value - _drawningBusHeight;
+ }
+
+ _startPosX = x;
+ _startPosY = y;
+ }
+
+ ///
+ /// Изменение направления перемещения
+ ///
+ /// Направление
+ /// true - перемещене выполнено, false - перемещение невозможно
+ public bool MoveTransport(DirectionType direction)
+ {
+ if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return false;
+ }
+
+ switch (direction)
+ {
+ //влево
+ case DirectionType.Left:
+ if (_startPosX.Value - EntityBus.Step > 0)
+ {
+ _startPosX -= (int)EntityBus.Step;
+ }
+ return true;
+ //вверх
+ case DirectionType.Up:
+ if (_startPosY.Value - EntityBus.Step > 0)
+ {
+ _startPosY -= (int)EntityBus.Step;
+ }
+ return true;
+ // вправо
+ case DirectionType.Right:
+ if (_startPosX.Value + EntityBus.Step <_pictureWidth - _drawningBusWidth)
+ {
+ _startPosX += (int)EntityBus.Step;
+ }
+ return true;
+ //вниз
+ case DirectionType.Down:
+ if (_startPosY.Value + EntityBus.Step < _pictureHeight - _drawningBusHeight)
+ {
+ _startPosY += (int)EntityBus.Step;
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
+
+ ///
+ /// Прорисовка объекта
+ ///
+ ///
+ public void DrawTransport(Graphics g)
+ {
+ if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue)
+ {
+ return;
+ }
+
+ Pen pen = new(Color.Black);
+ Brush additionalBrush = new SolidBrush(EntityBus.AdditionalColor);
+
+ //корпус автобуса
+
+
+
+ g.DrawRectangle(pen, _startPosX.Value + 0, _startPosY.Value, 175, 50);
+ g.DrawRectangle(pen, _startPosX.Value + 0, _startPosY.Value - 1, 175, 50);
+
+ g.FillRectangle(additionalBrush, _startPosX.Value + 0, _startPosY.Value, 175, 50);
+
+ //окна
+
+ Brush brBlue = new SolidBrush(Color.LightBlue);
+ g.FillEllipse(brBlue, _startPosX.Value + 80, _startPosY.Value + 6, 16, 25);
+ g.FillEllipse(brBlue, _startPosX.Value + 105, _startPosY.Value + 6, 16, 25);
+ g.FillEllipse(brBlue, _startPosX.Value + 130, _startPosY.Value + 6, 16, 25);
+ g.FillEllipse(brBlue, _startPosX.Value + 155, _startPosY.Value + 6, 16, 25);
+ g.FillEllipse(brBlue, _startPosX.Value + 25, _startPosY.Value + 6, 16, 25);
+ g.FillEllipse(brBlue, _startPosX.Value + 5, _startPosY.Value + 6, 16, 25);
+
+ g.DrawEllipse(pen, _startPosX.Value + 80, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 105, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 130, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 155, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 25, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 5, _startPosY.Value + 6, 16, 25);
+
+
+ //дверь
+
+ Brush br = new SolidBrush(EntityBus.BodyColor);
+ g.DrawRectangle(pen, _startPosX.Value + 49, _startPosY.Value + 9, 20, 40);
+ g.DrawRectangle(pen, _startPosX.Value + 50, _startPosY.Value + 10, 20, 40);
+ g.FillRectangle(br, _startPosX.Value + 50, _startPosY.Value + 10, 20, 40);
+
+
+
+ //колеса
+
+ Brush brGrey = new SolidBrush(Color.Gray);
+ g.FillEllipse(brGrey, _startPosX.Value + 15, _startPosY.Value + 40, 20, 20);
+ g.FillEllipse(brGrey, _startPosX.Value + 115, _startPosY.Value + 40, 20, 20);
+ g.DrawEllipse(pen, _startPosX.Value + 15, _startPosY.Value + 40, 20, 20);
+ g.DrawEllipse(pen, _startPosX.Value + 115, _startPosY.Value + 40, 20, 20);
+
+
+ //доп отсек
+ if (EntityBus.AdditionalCompartment)
+ {
+ //корпус
+ g.DrawRectangle(pen, _startPosX.Value + 204, _startPosY.Value - 1, 105, 50);
+ g.DrawRectangle(pen, _startPosX.Value + 205, _startPosY.Value, 105, 50);
+ g.FillRectangle(additionalBrush, _startPosX.Value + 205, _startPosY.Value, 105, 50);
+
+
+ //окна
+ g.FillEllipse(brBlue, _startPosX.Value + 247, _startPosY.Value + 6, 16, 25);
+ g.FillEllipse(brBlue, _startPosX.Value + 275, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 247, _startPosY.Value + 6, 16, 25);
+ g.DrawEllipse(pen, _startPosX.Value + 275, _startPosY.Value + 6, 16, 25);
+
+
+
+ //дверь
+ g.FillRectangle(br, _startPosX.Value + 215, _startPosY.Value + 10, 20, 40);
+ g.DrawRectangle(pen, _startPosX.Value + 215, _startPosY.Value + 10, 20, 40);
+ //колеса
+
+
+ g.FillEllipse(brGrey, _startPosX.Value + 250, _startPosY.Value + 40, 20, 20);
+ g.DrawEllipse(pen, _startPosX.Value + 250, _startPosY.Value + 40, 20, 20);
+
+
+ }
+
+ //гармошка
+ if (EntityBus.Accordion)
+ {
+ Brush brGray = new SolidBrush(Color.LightGray);
+
+ g.FillRectangle(brGray, _startPosX.Value + 175, _startPosY.Value + 4, 30, 42);
+ g.FillRectangle(brGray, _startPosX.Value + 180, _startPosY.Value + 4, 5, 42);
+ g.FillRectangle(brGray, _startPosX.Value + 185, _startPosY.Value + 4, 5, 42);
+ g.FillRectangle(brGray, _startPosX.Value + 190, _startPosY.Value + 4, 5, 42);
+ g.FillRectangle(brGray, _startPosX.Value + 195, _startPosY.Value + 4, 5, 42);
+
+ g.DrawRectangle(pen, _startPosX.Value + 175, _startPosY.Value + 4, 30, 42);
+ g.DrawRectangle(pen, _startPosX.Value + 180, _startPosY.Value + 4, 5, 42);
+ g.DrawRectangle(pen, _startPosX.Value + 185, _startPosY.Value + 4, 5, 42);
+ g.DrawRectangle(pen, _startPosX.Value + 190, _startPosY.Value + 4, 5, 42);
+ g.DrawRectangle(pen, _startPosX.Value + 195, _startPosY.Value + 4, 5, 42);
+
+ }
+ }
+}
+
+
+
+
+
+
+
+
diff --git a/lab_0/EntityBus.cs b/lab_0/EntityBus.cs
new file mode 100644
index 0000000..13fb1d3
--- /dev/null
+++ b/lab_0/EntityBus.cs
@@ -0,0 +1,61 @@
+namespace ProjectBus;
+
+///
+/// Класс-сущность "Автобус"
+///
+public class EntityBus
+{
+ ///
+ /// Скорость
+ ///
+ public int Speed { get; set; }
+
+ ///
+ /// Вес
+ ///
+ public double Weight { get; set; }
+
+ ///
+ /// Основной цвет
+ ///
+ public Color BodyColor { get; private set; }
+
+ ///
+ /// Дополнительный цвет (для опциональных элементов)
+ ///
+ public Color AdditionalColor { get; private set; }
+
+ ///
+ /// Признак (опция) наличия контейнеров
+ ///
+ public bool AdditionalCompartment { get; private set; }
+
+ ///
+ /// Признак (опция) наличия крана для разгрузки
+ ///
+ public bool Accordion { get; private set; }
+
+ ///
+ /// Шаг перемещения автобуса
+ ///
+ public double Step => Speed * 100 / Weight;
+
+ ///
+ /// Инициализация полей объекта-класса спортивного автомобиля
+ ///
+ /// Скорость
+ /// Вес автобуса
+ /// Основной цвет
+ /// Дополнительный цвет
+ /// Признак наличия дополнительного отсека
+ /// Признак наличия гармошки
+ public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool additionalCompartment, bool accordion)
+ {
+ Speed = speed;
+ Weight = weight;
+ BodyColor = bodyColor;
+ AdditionalColor = additionalColor;
+ AdditionalCompartment = additionalCompartment;
+ Accordion = accordion;
+ }
+}
\ No newline at end of file
diff --git a/lab_0/Form1.Designer.cs b/lab_0/Form1.Designer.cs
deleted file mode 100644
index 91e436d..0000000
--- a/lab_0/Form1.Designer.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-namespace lab_0
-{
- 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()
- {
- SuspendLayout();
- //
- // Form1
- //
- AutoScaleDimensions = new SizeF(13F, 32F);
- AutoScaleMode = AutoScaleMode.Font;
- ClientSize = new Size(800, 450);
- Name = "Form1";
- Text = "Form1";
- Load += Form1_Load;
- ResumeLayout(false);
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/lab_0/Form1.cs b/lab_0/Form1.cs
deleted file mode 100644
index 6bc877c..0000000
--- a/lab_0/Form1.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-namespace lab_0
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
-
- private void Form1_Load(object sender, EventArgs e)
- {
-
- }
- }
-}
\ No newline at end of file
diff --git a/lab_0/FormBus.Designer.cs b/lab_0/FormBus.Designer.cs
new file mode 100644
index 0000000..bdd01e3
--- /dev/null
+++ b/lab_0/FormBus.Designer.cs
@@ -0,0 +1,133 @@
+namespace ProjectBus
+{
+ 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()
+ {
+ pictureBoxBus = new PictureBox();
+ buttonCreate = new Button();
+ buttonLeft = new Button();
+ buttonRight = new Button();
+ buttonUp = new Button();
+ buttonDown = new Button();
+ ((System.ComponentModel.ISupportInitialize)pictureBoxBus).BeginInit();
+ SuspendLayout();
+ //
+ // pictureBoxBus
+ //
+ pictureBoxBus.Dock = DockStyle.Fill;
+ pictureBoxBus.Location = new Point(0, 0);
+ pictureBoxBus.Name = "pictureBoxBus";
+ pictureBoxBus.Size = new Size(800, 450);
+ pictureBoxBus.TabIndex = 7;
+ pictureBoxBus.TabStop = false;
+ //
+ // buttonCreate
+ //
+ buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
+ buttonCreate.Location = new Point(12, 392);
+ buttonCreate.Name = "buttonCreate";
+ buttonCreate.Size = new Size(150, 46);
+ buttonCreate.TabIndex = 2;
+ buttonCreate.Text = "Создать";
+ buttonCreate.UseVisualStyleBackColor = true;
+ buttonCreate.Click += ButtonCreate_Click;
+ //
+ // buttonLeft
+ //
+ buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonLeft.BackgroundImage = Properties.Resources.arrowLeft;
+ buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonLeft.Location = new Point(626, 388);
+ buttonLeft.Name = "buttonLeft";
+ buttonLeft.Size = new Size(50, 50);
+ buttonLeft.TabIndex = 3;
+ buttonLeft.UseVisualStyleBackColor = true;
+ buttonLeft.Click += ButtonMove_Click;
+ //
+ // buttonRight
+ //
+ buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonRight.BackgroundImage = Properties.Resources.arrowRight;
+ buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonRight.Location = new Point(738, 390);
+ buttonRight.Name = "buttonRight";
+ buttonRight.Size = new Size(50, 50);
+ buttonRight.TabIndex = 4;
+ buttonRight.UseVisualStyleBackColor = true;
+ buttonRight.Click += ButtonMove_Click;
+ //
+ // buttonUp
+ //
+ buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonUp.BackgroundImage = Properties.Resources.arrowUp;
+ buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUp.Location = new Point(682, 332);
+ buttonUp.Name = "buttonUp";
+ buttonUp.Size = new Size(50, 50);
+ buttonUp.TabIndex = 5;
+ buttonUp.UseVisualStyleBackColor = true;
+ buttonUp.Click += ButtonMove_Click;
+ //
+ // buttonDown
+ //
+ buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ buttonDown.BackgroundImage = Properties.Resources.arrowDown;
+ buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDown.Location = new Point(682, 388);
+ buttonDown.Name = "buttonDown";
+ buttonDown.Size = new Size(50, 50);
+ buttonDown.TabIndex = 6;
+ buttonDown.UseVisualStyleBackColor = true;
+ buttonDown.Click += ButtonMove_Click;
+ //
+ // FormBus
+ //
+ AutoScaleDimensions = new SizeF(13F, 32F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(800, 450);
+ Controls.Add(buttonDown);
+ Controls.Add(buttonUp);
+ Controls.Add(buttonRight);
+ Controls.Add(buttonLeft);
+ Controls.Add(buttonCreate);
+ Controls.Add(pictureBoxBus);
+ Name = "FormBus";
+ Text = "Автобус";
+ ((System.ComponentModel.ISupportInitialize)pictureBoxBus).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+ private PictureBox pictureBoxBus;
+ private Button buttonCreate;
+ private Button buttonLeft;
+ private Button buttonRight;
+ private Button buttonUp;
+ private Button buttonDown;
+ }
+}
\ No newline at end of file
diff --git a/lab_0/FormBus.cs b/lab_0/FormBus.cs
new file mode 100644
index 0000000..d170e9e
--- /dev/null
+++ b/lab_0/FormBus.cs
@@ -0,0 +1,88 @@
+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 ProjectBus
+{
+ public partial class FormBus : Form
+ {
+ private DrawingBus? _drawingBus;
+
+ public FormBus()
+ {
+ InitializeComponent();
+ }
+
+ private void Draw()
+ {
+ if (_drawingBus == null)
+ {
+ return;
+ }
+
+ Bitmap bmp = new(pictureBoxBus.Width, pictureBoxBus.Height);
+ Graphics gr = Graphics.FromImage(bmp);
+ _drawingBus.DrawTransport(gr);
+ pictureBoxBus.Image = bmp;
+ }
+
+
+ private void ButtonCreate_Click(object sender, EventArgs e)
+ {
+ Random random = new();
+ _drawingBus = new DrawingBus();
+ _drawingBus.Init(random.Next(100, 300), random.Next(1000, 3000),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
+ Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
+ Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));
+ _drawingBus.SetPictureSize(pictureBoxBus.Width, pictureBoxBus.Height);
+ _drawingBus.SetPosition(random.Next(10, 100), random.Next(10, 100));
+
+ Draw();
+
+ }
+
+ private void ButtonMove_Click(object sender, EventArgs e)
+ {
+ if (_drawingBus == null)
+ {
+ return;
+ }
+
+ string name = ((Button)sender)?.Name ?? string.Empty;
+ bool result = false;
+ switch (name)
+ {
+ case "buttonUp":
+ result =
+ _drawingBus.MoveTransport(DirectionType.Up);
+ break;
+ case "buttonDown":
+ result =
+ _drawingBus.MoveTransport(DirectionType.Down);
+ break;
+ case "buttonLeft":
+ result =
+ _drawingBus.MoveTransport(DirectionType.Left);
+ break;
+ case "buttonRight":
+ result =
+ _drawingBus.MoveTransport(DirectionType.Right);
+ break;
+ }
+
+ if (result)
+ {
+ Draw();
+ }
+
+ }
+ }
+}
+
diff --git a/lab_0/Form1.resx b/lab_0/FormBus.resx
similarity index 100%
rename from lab_0/Form1.resx
rename to lab_0/FormBus.resx
diff --git a/lab_0/Program.cs b/lab_0/Program.cs
index 4536664..919414c 100644
--- a/lab_0/Program.cs
+++ b/lab_0/Program.cs
@@ -1,3 +1,5 @@
+using ProjectBus;
+
namespace lab_0
{
internal static class Program
@@ -11,7 +13,7 @@ namespace lab_0
// 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/lab_0/ProjectBus.csproj b/lab_0/ProjectBus.csproj
new file mode 100644
index 0000000..244387d
--- /dev/null
+++ b/lab_0/ProjectBus.csproj
@@ -0,0 +1,26 @@
+
+
+
+ WinExe
+ net7.0-windows
+ enable
+ true
+ enable
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
\ No newline at end of file
diff --git a/lab_0/Properties/Resources.Designer.cs b/lab_0/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..9fa5a26
--- /dev/null
+++ b/lab_0/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectBus.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("ProjectBus.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 arrowDown {
+ get {
+ object obj = ResourceManager.GetObject("arrowDown", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrowLeft {
+ get {
+ object obj = ResourceManager.GetObject("arrowLeft", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrowRight {
+ get {
+ object obj = ResourceManager.GetObject("arrowRight", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap arrowUp {
+ get {
+ object obj = ResourceManager.GetObject("arrowUp", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/lab_0/Properties/Resources.resx b/lab_0/Properties/Resources.resx
new file mode 100644
index 0000000..369dce5
--- /dev/null
+++ b/lab_0/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\arrowUp.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrowRight.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrowLeft.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\arrowDown.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/lab_0/Resources/arrowDown.jpeg b/lab_0/Resources/arrowDown.jpeg
new file mode 100644
index 0000000..dc51ade
Binary files /dev/null and b/lab_0/Resources/arrowDown.jpeg differ
diff --git a/lab_0/Resources/arrowLeft.jpeg b/lab_0/Resources/arrowLeft.jpeg
new file mode 100644
index 0000000..1569857
Binary files /dev/null and b/lab_0/Resources/arrowLeft.jpeg differ
diff --git a/lab_0/Resources/arrowRight.jpeg b/lab_0/Resources/arrowRight.jpeg
new file mode 100644
index 0000000..2257a1c
Binary files /dev/null and b/lab_0/Resources/arrowRight.jpeg differ
diff --git a/lab_0/Resources/arrowUp.jpeg b/lab_0/Resources/arrowUp.jpeg
new file mode 100644
index 0000000..11e8323
Binary files /dev/null and b/lab_0/Resources/arrowUp.jpeg differ
diff --git a/lab_0/lab_0.csproj b/lab_0/lab_0.csproj
deleted file mode 100644
index e1a0735..0000000
--- a/lab_0/lab_0.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- WinExe
- net7.0-windows
- enable
- true
- enable
-
-
-
\ No newline at end of file
diff --git a/lab_0/lab_0.sln b/lab_0/lab_0.sln
index 6e03fb8..27b89b0 100644
--- a/lab_0/lab_0.sln
+++ b/lab_0/lab_0.sln
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34031.279
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab_0", "lab_0.csproj", "{7F126B40-AEDE-40A9-840E-4158D2218B6F}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectBus", "ProjectBus.csproj", "{7F126B40-AEDE-40A9-840E-4158D2218B6F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/кнопки/arrowDown.jpeg b/кнопки/arrowDown.jpeg
new file mode 100644
index 0000000..dc51ade
Binary files /dev/null and b/кнопки/arrowDown.jpeg differ
diff --git a/кнопки/arrowLeft.jpeg b/кнопки/arrowLeft.jpeg
new file mode 100644
index 0000000..1569857
Binary files /dev/null and b/кнопки/arrowLeft.jpeg differ
diff --git a/кнопки/arrowRight.jpeg b/кнопки/arrowRight.jpeg
new file mode 100644
index 0000000..2257a1c
Binary files /dev/null and b/кнопки/arrowRight.jpeg differ
diff --git a/кнопки/arrowUp.jpeg b/кнопки/arrowUp.jpeg
new file mode 100644
index 0000000..11e8323
Binary files /dev/null and b/кнопки/arrowUp.jpeg differ