From b9d54b2e8b26c0d22efe94c3a1b97c8a9397a4f2 Mon Sep 17 00:00:00 2001 From: shadowik Date: Tue, 21 Feb 2023 00:39:41 +0300 Subject: [PATCH] Renaming --- Pizzeria/Pizzeria/FormComponent.cs | 3 +-- Pizzeria/Pizzeria/FormCreateOrder.cs | 13 +------------ Pizzeria/Pizzeria/FormMain.cs | 9 --------- Pizzeria/Pizzeria/FormPizza.cs | 10 +--------- Pizzeria/Pizzeria/FormPizzaComponent.cs | 10 ---------- .../PizzeriaDataModels/Models/IComponentModel.cs | 8 +------- .../Implements/OrderStorage.cs | 1 - README.md | 2 +- 8 files changed, 5 insertions(+), 51 deletions(-) diff --git a/Pizzeria/Pizzeria/FormComponent.cs b/Pizzeria/Pizzeria/FormComponent.cs index 41fc5a2..033b55e 100644 --- a/Pizzeria/Pizzeria/FormComponent.cs +++ b/Pizzeria/Pizzeria/FormComponent.cs @@ -2,7 +2,6 @@ using PizzeriaContracts.BindingModels; using PizzeriaContracts.BusinessLogicsContracts; using PizzeriaContracts.SearchModels; -using System.Windows.Forms; namespace PizzeriaView { @@ -61,7 +60,7 @@ namespace PizzeriaView var operationResult = _id.HasValue ? _logic.Update(model) : _logic.Create(model); if (!operationResult) { - throw new Exception("Ошибка при сохранении. Дополнительная информация в логах.");//При обновлении, может быть, тоже ошибка появиться.. + throw new Exception("Ошибка при сохранении. Дополнительная информация в логах."); } MessageBox.Show("Сохранение прошло успешно", "Сообщение", MessageBoxButtons.OK, MessageBoxIcon.Information); DialogResult = DialogResult.OK; diff --git a/Pizzeria/Pizzeria/FormCreateOrder.cs b/Pizzeria/Pizzeria/FormCreateOrder.cs index 1acb535..5e53b9a 100644 --- a/Pizzeria/Pizzeria/FormCreateOrder.cs +++ b/Pizzeria/Pizzeria/FormCreateOrder.cs @@ -1,20 +1,9 @@ using Microsoft.Extensions.Logging; -using Microsoft.VisualBasic.Logging; using PizzeriaContracts.BindingModels; using PizzeriaContracts.BusinessLogicsContracts; using PizzeriaContracts.SearchModels; using PizzeriaContracts.ViewModels; -using PizzeriaListImplement.Models; -using System; -using System.Collections; -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 PizzeriaView { diff --git a/Pizzeria/Pizzeria/FormMain.cs b/Pizzeria/Pizzeria/FormMain.cs index 736f66e..76b8ee3 100644 --- a/Pizzeria/Pizzeria/FormMain.cs +++ b/Pizzeria/Pizzeria/FormMain.cs @@ -2,15 +2,6 @@ using Pizzeria; using PizzeriaContracts.BindingModels; using PizzeriaContracts.BusinessLogicsContracts; -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 PizzeriaView { diff --git a/Pizzeria/Pizzeria/FormPizza.cs b/Pizzeria/Pizzeria/FormPizza.cs index a1df7be..1453d33 100644 --- a/Pizzeria/Pizzeria/FormPizza.cs +++ b/Pizzeria/Pizzeria/FormPizza.cs @@ -4,15 +4,7 @@ using Microsoft.Extensions.Logging; using PizzeriaContracts.BindingModels; using PizzeriaContracts.BusinessLogicsContracts; using PizzeriaContracts.SearchModels; -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 PizzeriaView { diff --git a/Pizzeria/Pizzeria/FormPizzaComponent.cs b/Pizzeria/Pizzeria/FormPizzaComponent.cs index bce3713..cbddfb0 100644 --- a/Pizzeria/Pizzeria/FormPizzaComponent.cs +++ b/Pizzeria/Pizzeria/FormPizzaComponent.cs @@ -1,16 +1,6 @@ using PizzeriaDataModels.Models; -using Microsoft.VisualBasic.Logging; using PizzeriaContracts.BusinessLogicsContracts; using PizzeriaContracts.ViewModels; -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 PizzeriaView { diff --git a/Pizzeria/PizzeriaDataModels/Models/IComponentModel.cs b/Pizzeria/PizzeriaDataModels/Models/IComponentModel.cs index 78f94dd..001166c 100644 --- a/Pizzeria/PizzeriaDataModels/Models/IComponentModel.cs +++ b/Pizzeria/PizzeriaDataModels/Models/IComponentModel.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace PizzeriaDataModels.Models +namespace PizzeriaDataModels.Models { public interface IComponentModel : IId { diff --git a/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs b/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs index 6bf79c1..007e7ae 100644 --- a/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs +++ b/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs @@ -23,7 +23,6 @@ namespace PizzeriaListImplement.Implements } public List GetFilteredList(OrderSearchModel model) { - //А, собственно, этт метод не имеет ценности, так как повторяет функционал следующего var result = new List(); if (model == null || !model.Id.HasValue) { diff --git a/README.md b/README.md index 40715d0..4969d58 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# PIbd-21_Zaharchenko_M.I._Bank_Executor +# PIbd-21_Zaharchenko_M.I._Pizzeria