From 9b7f99f36adbce43f2784db2bc229198b9808f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9F=D1=83=D1=82?= =?UTF-8?q?=D0=B8=D0=BD=D1=86=D0=B5=D0=B2?= Date: Mon, 25 Mar 2024 01:45:28 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs | 2 +- FoodOrders/FoodOrdersView/FormMakeShipment.cs | 4 ++-- FoodOrders/FoodOrdersView/FormShop.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs b/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs index 14c24f0..d018863 100644 --- a/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs +++ b/FoodOrders/FoodOrdersBusinessLogic/BusinessLogics/ShopLogic.cs @@ -96,7 +96,7 @@ namespace FoodOrdersBusinessLogic.BusinessLogics } if (count <= 0) { - throw new ArgumentException("Количество товаров(мороженого) в магазине должно быть больше нуля", nameof(count)); + throw new ArgumentException("Количество товаров(блюд) в магазине должно быть больше нуля", nameof(count)); } _logger.LogInformation("MakeShipment(GetElement). ShopName: {ShopName}. Id: {Id}", shopModel.ShopName, shopModel.Id); var shop = _shopStorage.GetElement(shopModel); diff --git a/FoodOrders/FoodOrdersView/FormMakeShipment.cs b/FoodOrders/FoodOrdersView/FormMakeShipment.cs index 1134ff0..73244a0 100644 --- a/FoodOrders/FoodOrdersView/FormMakeShipment.cs +++ b/FoodOrders/FoodOrdersView/FormMakeShipment.cs @@ -22,7 +22,7 @@ namespace FoodOrdersView private void FormMakeShipment_Load(object sender, EventArgs e) { - _logger.LogInformation("Ice creams loading"); + _logger.LogInformation("Dishs loading"); try { var list = _logicDish.ReadList(null); @@ -36,7 +36,7 @@ namespace FoodOrdersView } catch (Exception ex) { - _logger.LogError(ex, "Ice creams loading error"); + _logger.LogError(ex, "Dishs loading error"); MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } _logger.LogInformation("Shops loading"); diff --git a/FoodOrders/FoodOrdersView/FormShop.cs b/FoodOrders/FoodOrdersView/FormShop.cs index 0f61588..92934da 100644 --- a/FoodOrders/FoodOrdersView/FormShop.cs +++ b/FoodOrders/FoodOrdersView/FormShop.cs @@ -53,7 +53,7 @@ namespace FoodOrdersView private void LoadData() { - _logger.LogInformation("Shop ice creams loading"); + _logger.LogInformation("Shop dishs loading"); try { if (_shopDishs != null) @@ -67,7 +67,7 @@ namespace FoodOrdersView } catch (Exception ex) { - _logger.LogError(ex, "Shop ice creams loading error"); + _logger.LogError(ex, "Shop dishs loading error"); MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }