From e9691f2f633dbca1abd53d3619f9f401cb587a46 Mon Sep 17 00:00:00 2001 From: Oleg Shabunov Date: Tue, 19 Mar 2024 21:18:58 +0400 Subject: [PATCH] Rename MainForm title --- AutoWorkshopContracts/BindingModels/OrderBindingModel.cs | 4 ++-- AutoWorkshopImplement/Implements/OrderStorage.cs | 1 - AutoWorkshopView/Forms/FormComponent.cs | 1 - AutoWorkshopView/MainForm.Designer.cs | 8 ++++---- AutoWorkshopView/MainForm.cs | 1 - AutoWorkshopView/Program.cs | 1 + 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/AutoWorkshopContracts/BindingModels/OrderBindingModel.cs b/AutoWorkshopContracts/BindingModels/OrderBindingModel.cs index 88305f3..161742f 100644 --- a/AutoWorkshopContracts/BindingModels/OrderBindingModel.cs +++ b/AutoWorkshopContracts/BindingModels/OrderBindingModel.cs @@ -1,5 +1,5 @@ -using AutoWorkshopDataModels.Models; -using AutoWorkshopDataModels.Enums; +using AutoWorkshopDataModels.Enums; +using AutoWorkshopDataModels.Models; namespace AutoWorkshopContracts.BindingModels { diff --git a/AutoWorkshopImplement/Implements/OrderStorage.cs b/AutoWorkshopImplement/Implements/OrderStorage.cs index cafea88..53ee90e 100644 --- a/AutoWorkshopImplement/Implements/OrderStorage.cs +++ b/AutoWorkshopImplement/Implements/OrderStorage.cs @@ -3,7 +3,6 @@ using AutoWorkshopContracts.SearchModels; using AutoWorkshopContracts.StoragesContracts; using AutoWorkshopContracts.ViewModels; using AutoWorkshopListImplement.Models; -using System.Reflection; namespace AutoWorkshopListImplement.Implements { diff --git a/AutoWorkshopView/Forms/FormComponent.cs b/AutoWorkshopView/Forms/FormComponent.cs index d79e3bf..1b0a14f 100644 --- a/AutoWorkshopView/Forms/FormComponent.cs +++ b/AutoWorkshopView/Forms/FormComponent.cs @@ -2,7 +2,6 @@ using AutoWorkshopContracts.BusinessLogicContracts; using AutoWorkshopContracts.SearchModels; using Microsoft.Extensions.Logging; -using System.Windows.Forms; namespace AutoWorkshopView.Forms { diff --git a/AutoWorkshopView/MainForm.Designer.cs b/AutoWorkshopView/MainForm.Designer.cs index 732938d..17becca 100644 --- a/AutoWorkshopView/MainForm.Designer.cs +++ b/AutoWorkshopView/MainForm.Designer.cs @@ -51,7 +51,7 @@ MenuStrip.Padding = new Padding(5, 2, 0, 2); MenuStrip.Size = new Size(1134, 24); MenuStrip.TabIndex = 0; - MenuStrip.Text = "menuStrip1"; + MenuStrip.Text = "TopMenuStrip"; // // ToolStripMenu // @@ -63,14 +63,14 @@ // ComponentsStripMenuItem // ComponentsStripMenuItem.Name = "ComponentsStripMenuItem"; - ComponentsStripMenuItem.Size = new Size(180, 22); + ComponentsStripMenuItem.Size = new Size(145, 22); ComponentsStripMenuItem.Text = "Компоненты"; ComponentsStripMenuItem.Click += ComponentsStripMenuItem_Click; // // RepairStripMenuItem // RepairStripMenuItem.Name = "RepairStripMenuItem"; - RepairStripMenuItem.Size = new Size(180, 22); + RepairStripMenuItem.Size = new Size(145, 22); RepairStripMenuItem.Text = "Ремонты"; RepairStripMenuItem.Click += RepairsStripMenuItem_Click; // @@ -154,7 +154,7 @@ MainMenuStrip = MenuStrip; Margin = new Padding(3, 2, 3, 2); Name = "MainForm"; - Text = "MainForm"; + Text = "Основная форма"; Load += MainForm_Load; MenuStrip.ResumeLayout(false); MenuStrip.PerformLayout(); diff --git a/AutoWorkshopView/MainForm.cs b/AutoWorkshopView/MainForm.cs index 7737f4a..66ff9a1 100644 --- a/AutoWorkshopView/MainForm.cs +++ b/AutoWorkshopView/MainForm.cs @@ -1,6 +1,5 @@ using AutoWorkshopContracts.BindingModels; using AutoWorkshopContracts.BusinessLogicContracts; -using AutoWorkshopDataModels.Enums; using AutoWorkshopView.Forms; using Microsoft.Extensions.Logging; diff --git a/AutoWorkshopView/Program.cs b/AutoWorkshopView/Program.cs index 60e854b..c16b8be 100644 --- a/AutoWorkshopView/Program.cs +++ b/AutoWorkshopView/Program.cs @@ -40,6 +40,7 @@ namespace AutoWorkshopView Services.AddTransient(); Services.AddTransient(); Services.AddTransient(); + Services.AddTransient(); Services.AddTransient(); Services.AddTransient();