diff --git a/Trolleybus/Trolleybus.sln b/Trolleybus/Trolleybus.sln new file mode 100644 index 0000000..b66c48a --- /dev/null +++ b/Trolleybus/Trolleybus.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34024.191 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Trolleybus", "Trolleybus\Trolleybus.csproj", "{D0EC2C7B-1218-45A1-95F1-7697825B93CF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D0EC2C7B-1218-45A1-95F1-7697825B93CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D0EC2C7B-1218-45A1-95F1-7697825B93CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D0EC2C7B-1218-45A1-95F1-7697825B93CF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D0EC2C7B-1218-45A1-95F1-7697825B93CF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {7BD35329-9874-48AD-A3F4-50BA7A354CF5} + EndGlobalSection +EndGlobal diff --git a/Trolleybus/Trolleybus/DirectionType.cs b/Trolleybus/Trolleybus/DirectionType.cs new file mode 100644 index 0000000..e3d7df7 --- /dev/null +++ b/Trolleybus/Trolleybus/DirectionType.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Trolleybus +{ + /// + /// Направление перемещения + /// + public enum DirectionType + { + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 + + } +} + diff --git a/Trolleybus/Trolleybus/DrawingTrolleybus.cs b/Trolleybus/Trolleybus/DrawingTrolleybus.cs new file mode 100644 index 0000000..d8532d6 --- /dev/null +++ b/Trolleybus/Trolleybus/DrawingTrolleybus.cs @@ -0,0 +1,175 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Trolleybus +{ + public class DrawingTrolleybus + { + /// + /// Класс-сущность + /// + public EntityTrolleybus? EntityTrolleybus { get; private set; } + /// + /// Ширина окна + /// + private int _pictureWidth; + /// + /// Высота окна + /// + private int _pictureHeight; + /// + /// Левая координата прорисовки троллейбуса + /// + private int _startPosX; + /// + /// Верхняя кооридната прорисовки троллейбуса + /// + private int _startPosY; + /// + /// Ширина прорисовки троллейбуса + /// + private readonly int _trolleybusWidth = 150; + /// + /// Высота прорисовки троллейбуса + /// + private readonly int _trolleybusHeight = 95; + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Цвет кузова + /// Дополнительный цвет + /// Признак наличия "рогов" + /// Признак наличия отсека под электрические батареи + /// Ширина картинки + /// Высота картинки + /// true - объект создан, false - проверка не пройдена, нельзя создать объект в этих размерах + public bool Init(int speed, double weight, Color bodyColor, Color additionalColor, bool horns, bool batteries, int width, int height) + { + if (width < _trolleybusWidth || height < _trolleybusHeight) + { + return false; + } + _pictureWidth = width; + _pictureHeight = height; + EntityTrolleybus = new EntityTrolleybus(); + EntityTrolleybus.Init(speed, weight, bodyColor, additionalColor, horns, batteries); + return true; + } + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + _startPosX = Math.Min(Math.Max(x, 0), _pictureWidth - _trolleybusWidth); + _startPosY = Math.Min(Math.Max(y, 0), _pictureHeight - _trolleybusHeight); + } + /// + /// Изменение направления перемещения + /// + /// Направление + public void MoveTransport(DirectionType direction) + { + if (EntityTrolleybus == null) + { + return; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX - EntityTrolleybus.Step > 0) + { + _startPosX -= (int)EntityTrolleybus.Step; + } + break; + //вверх + case DirectionType.Up: + if (_startPosY - EntityTrolleybus.Step > 0) + { + _startPosY -= (int)EntityTrolleybus.Step; + } + break; + // вправо + case DirectionType.Right: + if (_startPosX + _trolleybusWidth + EntityTrolleybus.Step < _pictureWidth) + { + _startPosX += (int)EntityTrolleybus.Step; + } + break; + // вниз + case DirectionType.Down: + if (_startPosY + _trolleybusHeight + EntityTrolleybus.Step < _pictureHeight) + { + _startPosY += (int)EntityTrolleybus.Step; + } + break; + } + } + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntityTrolleybus == null) + { + return; + } + Pen pen = new(Color.Black); + Pen bodyPen = new(EntityTrolleybus.BodyColor); + Pen additionalPen = new(EntityTrolleybus.AdditionalColor); + Brush additionalBrush = new SolidBrush(EntityTrolleybus.AdditionalColor); + Pen windowPen = new(Color.Cyan); + //РИСОВАНИЕ САМОГО ТРРОЛЛЕЙБУСА + //корпус + g.DrawLine(bodyPen, _startPosX, _startPosY + 30, _startPosX, _startPosY + 80); + g.DrawLine(bodyPen, _startPosX, _startPosY + 80, _startPosX + 20, _startPosY + 80); + g.DrawLine(bodyPen, _startPosX + 45, _startPosY + 80, _startPosX + 105, _startPosY + 80); + g.DrawLine(bodyPen, _startPosX + 130, _startPosY + 80, _startPosX + 150, _startPosY + 80); + g.DrawLine(bodyPen, _startPosX + 150, _startPosY + 80, _startPosX + 150, _startPosY + 30); + g.DrawLine(bodyPen, _startPosX + 150, _startPosY + 30, _startPosX, _startPosY + 30); + + //колёса + g.DrawEllipse(pen, _startPosX + 20, _startPosY + 70, 25, 25); + g.DrawEllipse(pen, _startPosX + 105, _startPosY + 70, 25, 25); + + //дверь + g.DrawRectangle(bodyPen, _startPosX + 55, _startPosY + 50, 16, 30); + + //окна + //окна до двери + for (int i = 0; i < 2; i++) + { + g.DrawEllipse(windowPen, _startPosX + 5 + 25 * i, _startPosY + 35, 16, 24); + } + //окна после двери + for (int i = 0; i < 3; i++) + { + g.DrawEllipse(windowPen, _startPosX + 75 + 25 * i, _startPosY + 35, 16, 24); + } + + //опциональные "рога" + if (EntityTrolleybus.Horns) + { + g.DrawLine(additionalPen, _startPosX + 70, _startPosY + 30, _startPosX + 40, _startPosY); + g.DrawLine(additionalPen, _startPosX + 70, _startPosY + 30, _startPosX + 60, _startPosY); + } + + //опциональный отсек для батареи + if (EntityTrolleybus.Batteries) + { + Point[] pointsOfBatteries = { new Point(_startPosX + 70, _startPosY + 30), new Point(_startPosX + 70, _startPosY + 25), new Point(_startPosX + 100, _startPosY + 25), new Point(_startPosX + 110, _startPosY + 30)}; + g.FillPolygon(additionalBrush, pointsOfBatteries); + } + } + } +} + diff --git a/Trolleybus/Trolleybus/EntityTrolleybus.cs b/Trolleybus/Trolleybus/EntityTrolleybus.cs new file mode 100644 index 0000000..f78ddaf --- /dev/null +++ b/Trolleybus/Trolleybus/EntityTrolleybus.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Trolleybus +{ + public class EntityTrolleybus + { + /// + /// Скорость + /// + public int Speed { get; private set; } + /// + /// Вес + /// + public double Weight { get; private set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + /// + /// Дополнительный цвет (для опциональных элементов) + /// + public Color AdditionalColor { get; private set; } + /// + /// Признак (опция) наличия "рогов" + /// + public bool Horns { get; private set; } + /// + /// Признак (опция) наличия отсека под электрические батареи + /// + public bool Batteries { get; private set; } + /// + /// Шаг перемещения автомобиля + /// + public double Step => (double)Speed * 100 / Weight; + /// + /// Инициализация полей объекта-класса троллейбуса + /// + /// Скорость + /// Вес троллейбуса + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия "рогов" + /// Признак наличия отсека под электрические батареи + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool horns, bool batteries) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Horns = horns; + Batteries = batteries; + } + } +} + diff --git a/Trolleybus/Trolleybus/FormTrolleybus.Designer.cs b/Trolleybus/Trolleybus/FormTrolleybus.Designer.cs new file mode 100644 index 0000000..34f1ad0 --- /dev/null +++ b/Trolleybus/Trolleybus/FormTrolleybus.Designer.cs @@ -0,0 +1,134 @@ +namespace Trolleybus +{ + partial class FormTrolleybus + { + /// + /// 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() + { + pictureBoxTrolleybus = new PictureBox(); + buttonCreate = new Button(); + buttonUp = new Button(); + buttonLeft = new Button(); + buttonDown = new Button(); + buttonRight = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxTrolleybus).BeginInit(); + SuspendLayout(); + // + // pictureBoxTrolleybus + // + pictureBoxTrolleybus.Dock = DockStyle.Fill; + pictureBoxTrolleybus.Location = new Point(0, 0); + pictureBoxTrolleybus.Name = "pictureBoxTrolleybus"; + pictureBoxTrolleybus.Size = new Size(882, 453); + pictureBoxTrolleybus.TabIndex = 5; + pictureBoxTrolleybus.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(12, 409); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(90, 30); + buttonCreate.TabIndex = 6; + buttonCreate.Text = "Создать"; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += ButtonCreate_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.стрелка_вверх; + buttonUp.BackgroundImageLayout = ImageLayout.Zoom; + buttonUp.Location = new Point(812, 377); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(30, 30); + buttonUp.TabIndex = 7; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += ButtonMove_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.стрелка_влево; + buttonLeft.BackgroundImageLayout = ImageLayout.Zoom; + buttonLeft.Location = new Point(776, 413); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(30, 30); + buttonLeft.TabIndex = 8; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += ButtonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.стрелка_вниз; + buttonDown.BackgroundImageLayout = ImageLayout.Zoom; + buttonDown.Location = new Point(812, 413); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(30, 30); + buttonDown.TabIndex = 9; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += ButtonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.стрелка_вправо; + buttonRight.BackgroundImageLayout = ImageLayout.Zoom; + buttonRight.Location = new Point(848, 413); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(30, 30); + buttonRight.TabIndex = 10; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += ButtonMove_Click; + // + // FormTrolleybus + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(882, 453); + Controls.Add(buttonRight); + Controls.Add(buttonDown); + Controls.Add(buttonLeft); + Controls.Add(buttonUp); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxTrolleybus); + Name = "FormTrolleybus"; + Text = "Троллейбус"; + ((System.ComponentModel.ISupportInitialize)pictureBoxTrolleybus).EndInit(); + ResumeLayout(false); + } + + #endregion + + private PictureBox pictureBoxTrolleybus; + private Button buttonCreate; + private Button buttonUp; + private Button buttonLeft; + private Button buttonDown; + private Button buttonRight; + } +} \ No newline at end of file diff --git a/Trolleybus/Trolleybus/FormTrolleybus.cs b/Trolleybus/Trolleybus/FormTrolleybus.cs new file mode 100644 index 0000000..d4064dc --- /dev/null +++ b/Trolleybus/Trolleybus/FormTrolleybus.cs @@ -0,0 +1,81 @@ +namespace Trolleybus +{ + /// + /// "" + /// + public partial class FormTrolleybus : Form + { + /// + /// - + /// + private DrawingTrolleybus? _drawingTrolleybus; + public FormTrolleybus() + { + InitializeComponent(); + } + /// + /// + /// + private void Draw() + { + if (_drawingTrolleybus == null) + { + return; + } + Bitmap bmp = new(pictureBoxTrolleybus.Width, pictureBoxTrolleybus.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawingTrolleybus.DrawTransport(gr); + pictureBoxTrolleybus.Image = bmp; + } + /// + /// "" + /// + /// + /// + private void ButtonCreate_Click(object sender, EventArgs e) + { + Random random = new(); + _drawingTrolleybus = new DrawingTrolleybus(); + // + _drawingTrolleybus.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)), + pictureBoxTrolleybus.Width, pictureBoxTrolleybus.Height); + // + _drawingTrolleybus.SetPosition(random.Next(10, 100), random.Next(10, 100)); + Draw(); + } + /// + /// + /// + /// + /// + private void ButtonMove_Click(object sender, EventArgs e) + { + if (_drawingTrolleybus == null) + { + return; + } + string name = ((Button)sender)?.Name ?? string.Empty; + switch (name) + { + case "buttonUp": + _drawingTrolleybus.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + _drawingTrolleybus.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + _drawingTrolleybus.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + _drawingTrolleybus.MoveTransport(DirectionType.Right); + break; + } + Draw(); + } + } +} \ No newline at end of file diff --git a/Trolleybus/Trolleybus/FormTrolleybus.resx b/Trolleybus/Trolleybus/FormTrolleybus.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/Trolleybus/Trolleybus/FormTrolleybus.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/Trolleybus/Trolleybus/Program.cs b/Trolleybus/Trolleybus/Program.cs new file mode 100644 index 0000000..1e98dfe --- /dev/null +++ b/Trolleybus/Trolleybus/Program.cs @@ -0,0 +1,17 @@ +namespace Trolleybus +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new FormTrolleybus()); + } + } +} \ No newline at end of file diff --git a/Trolleybus/Trolleybus/Properties/Resources.Designer.cs b/Trolleybus/Trolleybus/Properties/Resources.Designer.cs new file mode 100644 index 0000000..5f55a0b --- /dev/null +++ b/Trolleybus/Trolleybus/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace Trolleybus.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("Trolleybus.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 стрелка_вверх { + get { + object obj = ResourceManager.GetObject("стрелка вверх", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap стрелка_влево { + get { + object obj = ResourceManager.GetObject("стрелка влево", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap стрелка_вниз { + get { + object obj = ResourceManager.GetObject("стрелка вниз", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap стрелка_вправо { + get { + object obj = ResourceManager.GetObject("стрелка вправо", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Trolleybus/Trolleybus/Properties/Resources.resx b/Trolleybus/Trolleybus/Properties/Resources.resx new file mode 100644 index 0000000..39ee3cd --- /dev/null +++ b/Trolleybus/Trolleybus/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\стрелка вверх.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\стрелка влево.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\стрелка вниз.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\стрелка вправо.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Trolleybus/Trolleybus/Resources/стрелка вверх.png b/Trolleybus/Trolleybus/Resources/стрелка вверх.png new file mode 100644 index 0000000..2df2578 Binary files /dev/null and b/Trolleybus/Trolleybus/Resources/стрелка вверх.png differ diff --git a/Trolleybus/Trolleybus/Resources/стрелка влево.png b/Trolleybus/Trolleybus/Resources/стрелка влево.png new file mode 100644 index 0000000..a5b9151 Binary files /dev/null and b/Trolleybus/Trolleybus/Resources/стрелка влево.png differ diff --git a/Trolleybus/Trolleybus/Resources/стрелка вниз.png b/Trolleybus/Trolleybus/Resources/стрелка вниз.png new file mode 100644 index 0000000..6529cc6 Binary files /dev/null and b/Trolleybus/Trolleybus/Resources/стрелка вниз.png differ diff --git a/Trolleybus/Trolleybus/Resources/стрелка вправо.png b/Trolleybus/Trolleybus/Resources/стрелка вправо.png new file mode 100644 index 0000000..4eef5b1 Binary files /dev/null and b/Trolleybus/Trolleybus/Resources/стрелка вправо.png differ diff --git a/Trolleybus/Trolleybus/Trolleybus.csproj b/Trolleybus/Trolleybus/Trolleybus.csproj new file mode 100644 index 0000000..13ee123 --- /dev/null +++ b/Trolleybus/Trolleybus/Trolleybus.csproj @@ -0,0 +1,26 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + \ No newline at end of file