diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Entities/Bus.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Entities/Bus.cs
index 664b39d..83c3b37 100644
--- a/ProjectPeopleTransportation/ProjectPeopleTransportation/Entities/Bus.cs
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Entities/Bus.cs
@@ -12,19 +12,15 @@ public class Bus
public string BusName { get; private set; } = string.Empty;
- public int LicensePlate { get; private set; }
+ public string LicensePlate { get; private set; } = string.Empty;
- public int Capacity { get; private set; }
-
- public static Bus CreateEntity(int id, string busName, int licensePlate, int capacity)
+ public static Bus CreateEntity(int id, string busName, string licensePlate)
{
return new Bus
{
ID = id,
BusName = busName,
- LicensePlate = licensePlate,
- Capacity = capacity
+ LicensePlate = licensePlate
};
-
}
}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.Designer.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.Designer.cs
deleted file mode 100644
index e530e69..0000000
--- a/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace ProjectPeopleTransportation
-{
- 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
- }
-}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.Designer.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.Designer.cs
new file mode 100644
index 0000000..ec5df17
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.Designer.cs
@@ -0,0 +1,132 @@
+namespace ProjectPeopleTransportation
+{
+ partial class FormPeopleTransportation
+ {
+ ///
+ /// 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()
+ {
+ menuStrip = new MenuStrip();
+ справочникиToolStripMenuItem = new ToolStripMenuItem();
+ работникToolStripMenuItem = new ToolStripMenuItem();
+ автобусыToolStripMenuItem = new ToolStripMenuItem();
+ маршрутныеЛистыToolStripMenuItem = new ToolStripMenuItem();
+ операцииToolStripMenuItem = new ToolStripMenuItem();
+ отчетыToolStripMenuItem = new ToolStripMenuItem();
+ раздачаМаршрутовToolStripMenuItem = new ToolStripMenuItem();
+ началоСменыToolStripMenuItem = new ToolStripMenuItem();
+ menuStrip.SuspendLayout();
+ SuspendLayout();
+ //
+ // menuStrip
+ //
+ menuStrip.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, операцииToolStripMenuItem, отчетыToolStripMenuItem });
+ menuStrip.Location = new Point(0, 0);
+ menuStrip.Name = "menuStrip";
+ menuStrip.Size = new Size(784, 24);
+ menuStrip.TabIndex = 0;
+ menuStrip.Text = "menuStrip1";
+ //
+ // справочникиToolStripMenuItem
+ //
+ справочникиToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { работникToolStripMenuItem, автобусыToolStripMenuItem, маршрутныеЛистыToolStripMenuItem });
+ справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem";
+ справочникиToolStripMenuItem.Size = new Size(94, 20);
+ справочникиToolStripMenuItem.Text = "Справочники";
+ //
+ // работникToolStripMenuItem
+ //
+ работникToolStripMenuItem.Name = "работникToolStripMenuItem";
+ работникToolStripMenuItem.Size = new Size(186, 22);
+ работникToolStripMenuItem.Text = "Работники";
+ //
+ // автобусыToolStripMenuItem
+ //
+ автобусыToolStripMenuItem.Name = "автобусыToolStripMenuItem";
+ автобусыToolStripMenuItem.Size = new Size(186, 22);
+ автобусыToolStripMenuItem.Text = "Автобусы";
+ //
+ // маршрутныеЛистыToolStripMenuItem
+ //
+ маршрутныеЛистыToolStripMenuItem.Name = "маршрутныеЛистыToolStripMenuItem";
+ маршрутныеЛистыToolStripMenuItem.Size = new Size(186, 22);
+ маршрутныеЛистыToolStripMenuItem.Text = "Маршрутные листы";
+ //
+ // операцииToolStripMenuItem
+ //
+ операцииToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { раздачаМаршрутовToolStripMenuItem, началоСменыToolStripMenuItem });
+ операцииToolStripMenuItem.Name = "операцииToolStripMenuItem";
+ операцииToolStripMenuItem.Size = new Size(75, 20);
+ операцииToolStripMenuItem.Text = "Операции";
+ //
+ // отчетыToolStripMenuItem
+ //
+ отчетыToolStripMenuItem.Name = "отчетыToolStripMenuItem";
+ отчетыToolStripMenuItem.Size = new Size(60, 20);
+ отчетыToolStripMenuItem.Text = "Отчеты";
+ //
+ // раздачаМаршрутовToolStripMenuItem
+ //
+ раздачаМаршрутовToolStripMenuItem.Name = "раздачаМаршрутовToolStripMenuItem";
+ раздачаМаршрутовToolStripMenuItem.Size = new Size(184, 22);
+ раздачаМаршрутовToolStripMenuItem.Text = "Раздача маршрутов";
+ //
+ // началоСменыToolStripMenuItem
+ //
+ началоСменыToolStripMenuItem.Name = "началоСменыToolStripMenuItem";
+ началоСменыToolStripMenuItem.Size = new Size(184, 22);
+ началоСменыToolStripMenuItem.Text = "Начало смены";
+ //
+ // FormPeopleTransportation
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ BackgroundImage = Properties.Resources.bI5N4dcx3ng;
+ BackgroundImageLayout = ImageLayout.Stretch;
+ ClientSize = new Size(784, 411);
+ Controls.Add(menuStrip);
+ MainMenuStrip = menuStrip;
+ Name = "FormPeopleTransportation";
+ StartPosition = FormStartPosition.CenterScreen;
+ Text = "Пассажирские перевозки";
+ menuStrip.ResumeLayout(false);
+ menuStrip.PerformLayout();
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ #endregion
+
+ private MenuStrip menuStrip;
+ private ToolStripMenuItem справочникиToolStripMenuItem;
+ private ToolStripMenuItem операцииToolStripMenuItem;
+ private ToolStripMenuItem отчетыToolStripMenuItem;
+ private ToolStripMenuItem работникToolStripMenuItem;
+ private ToolStripMenuItem автобусыToolStripMenuItem;
+ private ToolStripMenuItem маршрутныеЛистыToolStripMenuItem;
+ private ToolStripMenuItem раздачаМаршрутовToolStripMenuItem;
+ private ToolStripMenuItem началоСменыToolStripMenuItem;
+ }
+}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.cs
similarity index 52%
rename from ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.cs
rename to ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.cs
index a168a9a..3d87c9f 100644
--- a/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.cs
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.cs
@@ -1,8 +1,8 @@
namespace ProjectPeopleTransportation
{
- public partial class Form1 : Form
+ public partial class FormPeopleTransportation : Form
{
- public Form1()
+ public FormPeopleTransportation()
{
InitializeComponent();
}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.resx b/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.resx
new file mode 100644
index 0000000..6c82d08
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/FormPeopleTransportation.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.Designer.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.Designer.cs
new file mode 100644
index 0000000..95579c4
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.Designer.cs
@@ -0,0 +1,118 @@
+namespace ProjectPeopleTransportation.Forms
+{
+ 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()
+ {
+ labelLicensePlate = new Label();
+ textBoxLicensePlate = new TextBox();
+ labelBusName = new Label();
+ buttonSave = new Button();
+ buttonCancel = new Button();
+ textBoxBusName = new TextBox();
+ SuspendLayout();
+ //
+ // labelLicensePlate
+ //
+ labelLicensePlate.AutoSize = true;
+ labelLicensePlate.Location = new Point(37, 42);
+ labelLicensePlate.Name = "labelLicensePlate";
+ labelLicensePlate.Size = new Size(62, 15);
+ labelLicensePlate.TabIndex = 0;
+ labelLicensePlate.Text = "Госномер";
+ //
+ // textBoxLicensePlate
+ //
+ textBoxLicensePlate.Location = new Point(129, 39);
+ textBoxLicensePlate.Name = "textBoxLicensePlate";
+ textBoxLicensePlate.Size = new Size(100, 23);
+ textBoxLicensePlate.TabIndex = 1;
+ //
+ // labelBusName
+ //
+ labelBusName.AutoSize = true;
+ labelBusName.Location = new Point(12, 116);
+ labelBusName.Name = "labelBusName";
+ labelBusName.Size = new Size(104, 15);
+ labelBusName.TabIndex = 2;
+ labelBusName.Text = "Название модели";
+ //
+ // buttonSave
+ //
+ buttonSave.Location = new Point(37, 206);
+ buttonSave.Name = "buttonSave";
+ buttonSave.Size = new Size(75, 23);
+ buttonSave.TabIndex = 6;
+ buttonSave.Text = "Сохранить";
+ buttonSave.UseVisualStyleBackColor = true;
+ buttonSave.Click += ButtonSave_Click;
+ //
+ // buttonCancel
+ //
+ buttonCancel.Location = new Point(222, 206);
+ buttonCancel.Name = "buttonCancel";
+ buttonCancel.Size = new Size(75, 23);
+ buttonCancel.TabIndex = 7;
+ buttonCancel.Text = "Отмена";
+ buttonCancel.UseVisualStyleBackColor = true;
+ buttonCancel.Click += ButtonCancel_Click;
+ //
+ // textBoxBusName
+ //
+ textBoxBusName.Location = new Point(129, 113);
+ textBoxBusName.Name = "textBoxBusName";
+ textBoxBusName.Size = new Size(100, 23);
+ textBoxBusName.TabIndex = 8;
+ //
+ // FormBus
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(326, 279);
+ Controls.Add(textBoxBusName);
+ Controls.Add(buttonCancel);
+ Controls.Add(buttonSave);
+ Controls.Add(labelBusName);
+ Controls.Add(textBoxLicensePlate);
+ Controls.Add(labelLicensePlate);
+ Name = "FormBus";
+ StartPosition = FormStartPosition.CenterParent;
+ Text = "Автобус";
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ #endregion
+
+ private Label labelLicensePlate;
+ private TextBox textBoxLicensePlate;
+ private Label labelBusName;
+ private Button buttonSave;
+ private Button buttonCancel;
+ private TextBox textBoxBusName;
+ }
+}
\ No newline at end of file
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.cs
new file mode 100644
index 0000000..6b74e60
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.cs
@@ -0,0 +1,72 @@
+using ProjectPeopleTransportation.Repositories;
+using ProjectPeopleTransportation.Entities;
+using ProjectPeopleTransportation.Entities.Enums;
+using System.Runtime.InteropServices.JavaScript;
+
+namespace ProjectPeopleTransportation.Forms;
+
+public partial class FormBus : Form
+{
+ private readonly IBusRepository _busRepository;
+
+ private int? _busId;
+
+ public int Id
+ {
+ set
+ {
+ try
+ {
+ var bus = _busRepository.ReadBusByID(value);
+ if (bus == null)
+ {
+ throw new InvalidDataException(nameof(bus));
+ }
+
+ textBoxLicensePlate.Text = bus.LicensePlate;
+ textBoxBusName.Text = bus.BusName;
+ _busId = value;
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message, "Ошибка при получении данных", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+ }
+ }
+ public FormBus(IBusRepository busRepository)
+ {
+ InitializeComponent();
+ _busRepository = busRepository ?? throw new ArgumentNullException(nameof(busRepository));
+ }
+
+ private void ButtonSave_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ if (string.IsNullOrWhiteSpace(textBoxLicensePlate.Text) || string.IsNullOrWhiteSpace(textBoxBusName.Text))
+ {
+ throw new Exception("Имеются незаполненные поля");
+ }
+
+ if (_busId.HasValue)
+ {
+ _busRepository.UpdateBus(CreateBus(_busId.Value));
+ }
+
+ else
+ {
+ _busRepository.CreateBus(CreateBus(0));
+ }
+ Close();
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message, "Ошибка при сохранении", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ }
+ private void ButtonCancel_Click(object sender, EventArgs e) => Close();
+
+ private Bus CreateBus(int id) => Bus.CreateEntity(id, textBoxBusName.Text, textBoxLicensePlate.Text);
+
+}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.resx b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.resx
similarity index 93%
rename from ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.resx
rename to ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.resx
index 1af7de1..af32865 100644
--- a/ProjectPeopleTransportation/ProjectPeopleTransportation/Form1.resx
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBus.resx
@@ -1,17 +1,17 @@
-
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.Designer.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.Designer.cs
new file mode 100644
index 0000000..6aae823
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.Designer.cs
@@ -0,0 +1,125 @@
+namespace ProjectPeopleTransportation.Forms
+{
+ partial class FormBuses
+ {
+ ///
+ /// 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()
+ {
+ panel1 = new Panel();
+ buttonAdd = new Button();
+ buttonUpdate = new Button();
+ buttonDelete = new Button();
+ dataGridView = new DataGridView();
+ panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
+ SuspendLayout();
+ //
+ // panel1
+ //
+ panel1.Controls.Add(buttonDelete);
+ panel1.Controls.Add(buttonUpdate);
+ panel1.Controls.Add(buttonAdd);
+ panel1.Dock = DockStyle.Right;
+ panel1.Location = new Point(651, 0);
+ panel1.Name = "panel1";
+ panel1.Size = new Size(149, 450);
+ panel1.TabIndex = 0;
+ //
+ // buttonAdd
+ //
+ buttonAdd.BackgroundImage = Properties.Resources.Fairytale_button_add_svg;
+ buttonAdd.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonAdd.Location = new Point(37, 21);
+ buttonAdd.Name = "buttonAdd";
+ buttonAdd.Size = new Size(75, 67);
+ buttonAdd.TabIndex = 0;
+ buttonAdd.UseVisualStyleBackColor = true;
+ buttonAdd.Click += ButtonAdd_Click;
+ //
+ // buttonUpdate
+ //
+ buttonUpdate.BackgroundImage = Properties.Resources.d5b7655bb6ab6f1a24b6ac537fcb639a;
+ buttonUpdate.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonUpdate.Location = new Point(37, 94);
+ buttonUpdate.Name = "buttonUpdate";
+ buttonUpdate.Size = new Size(75, 67);
+ buttonUpdate.TabIndex = 1;
+ buttonUpdate.UseVisualStyleBackColor = true;
+ buttonUpdate.Click += ButtonUpdate_Click;
+ //
+ // buttonDelete
+ //
+ buttonDelete.BackgroundImage = Properties.Resources.remove_151678_1280;
+ buttonDelete.BackgroundImageLayout = ImageLayout.Stretch;
+ buttonDelete.Location = new Point(37, 167);
+ buttonDelete.Name = "buttonDelete";
+ buttonDelete.Size = new Size(75, 67);
+ buttonDelete.TabIndex = 2;
+ buttonDelete.UseVisualStyleBackColor = true;
+ buttonDelete.Click += ButtonDelete_Click;
+ //
+ // dataGridView
+ //
+ dataGridView.AllowUserToAddRows = false;
+ dataGridView.AllowUserToDeleteRows = false;
+ dataGridView.AllowUserToResizeColumns = false;
+ dataGridView.AllowUserToResizeRows = false;
+ dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
+ dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridView.Dock = DockStyle.Fill;
+ dataGridView.Location = new Point(0, 0);
+ dataGridView.MultiSelect = false;
+ dataGridView.Name = "dataGridView";
+ dataGridView.ReadOnly = true;
+ dataGridView.RowHeadersVisible = false;
+ dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
+ dataGridView.Size = new Size(651, 450);
+ dataGridView.TabIndex = 1;
+ //
+ // FormBuses
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(800, 450);
+ Controls.Add(dataGridView);
+ Controls.Add(panel1);
+ Name = "FormBuses";
+ StartPosition = FormStartPosition.CenterParent;
+ Text = "Автобусы";
+ panel1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private Panel panel1;
+ private Button buttonDelete;
+ private Button buttonUpdate;
+ private Button buttonAdd;
+ private DataGridView dataGridView;
+ }
+}
\ No newline at end of file
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.cs
new file mode 100644
index 0000000..cb735df
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.cs
@@ -0,0 +1,35 @@
+using ProjectPeopleTransportation.Repositories;
+using Unity;
+
+
+namespace ProjectPeopleTransportation.Forms
+{
+ public partial class FormBuses : Form
+ {
+ private readonly IUnityContainer _container;
+
+ private readonly IBusRepository _busRepository;
+
+ public FormBuses(IUnityContainer container, IBusRepository busRepository)
+ {
+ InitializeComponent();
+ _container = container ?? throw new ArgumentNullException(nameof(container));
+ _busRepository = busRepository ?? throw new ArgumentNullException(nameof(busRepository));
+ }
+
+ private void ButtonAdd_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ButtonUpdate_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void ButtonDelete_Click(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.resx b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.resx
new file mode 100644
index 0000000..af32865
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Forms/FormBuses.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/ProjectPeopleTransportation/ProjectPeopleTransportation/Program.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Program.cs
index f149e05..022506b 100644
--- a/ProjectPeopleTransportation/ProjectPeopleTransportation/Program.cs
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Program.cs
@@ -15,7 +15,7 @@ namespace ProjectPeopleTransportation
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
- Application.Run(CreateContainer().Resolve());
+ Application.Run(CreateContainer().Resolve());
}
private static IUnityContainer CreateContainer()
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/ProjectPeopleTransportation.csproj b/ProjectPeopleTransportation/ProjectPeopleTransportation/ProjectPeopleTransportation.csproj
index 894afcd..accbdf0 100644
--- a/ProjectPeopleTransportation/ProjectPeopleTransportation/ProjectPeopleTransportation.csproj
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/ProjectPeopleTransportation.csproj
@@ -12,4 +12,19 @@
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Properties/Resources.Designer.cs b/ProjectPeopleTransportation/ProjectPeopleTransportation/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..2620841
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/Properties/Resources.Designer.cs
@@ -0,0 +1,103 @@
+//------------------------------------------------------------------------------
+//
+// Этот код создан программой.
+// Исполняемая версия:4.0.30319.42000
+//
+// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+// повторной генерации кода.
+//
+//------------------------------------------------------------------------------
+
+namespace ProjectPeopleTransportation.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("ProjectPeopleTransportation.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 bI5N4dcx3ng {
+ get {
+ object obj = ResourceManager.GetObject("bI5N4dcx3ng", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap d5b7655bb6ab6f1a24b6ac537fcb639a {
+ get {
+ object obj = ResourceManager.GetObject("d5b7655bb6ab6f1a24b6ac537fcb639a", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap Fairytale_button_add_svg {
+ get {
+ object obj = ResourceManager.GetObject("Fairytale_button_add.svg", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Поиск локализованного ресурса типа System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap remove_151678_1280 {
+ get {
+ object obj = ResourceManager.GetObject("remove_151678_1280", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Properties/Resources.resx b/ProjectPeopleTransportation/ProjectPeopleTransportation/Properties/Resources.resx
new file mode 100644
index 0000000..3763ffc
--- /dev/null
+++ b/ProjectPeopleTransportation/ProjectPeopleTransportation/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\bI5N4dcx3ng.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\d5b7655bb6ab6f1a24b6ac537fcb639a.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\Fairytale_button_add.svg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\remove_151678_1280.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
\ No newline at end of file
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/Fairytale_button_add.svg.png b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/Fairytale_button_add.svg.png
new file mode 100644
index 0000000..e4d9850
Binary files /dev/null and b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/Fairytale_button_add.svg.png differ
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/bI5N4dcx3ng.jpg b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/bI5N4dcx3ng.jpg
new file mode 100644
index 0000000..6dd278e
Binary files /dev/null and b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/bI5N4dcx3ng.jpg differ
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/d5b7655bb6ab6f1a24b6ac537fcb639a.jpg b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/d5b7655bb6ab6f1a24b6ac537fcb639a.jpg
new file mode 100644
index 0000000..7decc76
Binary files /dev/null and b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/d5b7655bb6ab6f1a24b6ac537fcb639a.jpg differ
diff --git a/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/remove_151678_1280.png b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/remove_151678_1280.png
new file mode 100644
index 0000000..f743fbc
Binary files /dev/null and b/ProjectPeopleTransportation/ProjectPeopleTransportation/Resources/remove_151678_1280.png differ