From 363b43ce09bbeac05bcdaf9da7c78ce6251bc109 Mon Sep 17 00:00:00 2001 From: leoevgeniy <98206383+leoevgeniy@users.noreply.github.com> Date: Mon, 15 Apr 2024 18:11:52 +0400 Subject: [PATCH] fix --- .../BusinessLogics/ShopLogic.cs | 6 +++--- .../CarpentryWorkshopView/FormSell.Designer.cs | 2 +- CarpentryWorkshop/CarpentryWorkshopView/FormSell.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CarpentryWorkshop/CarpentryWorkshopBusinessLogic/BusinessLogics/ShopLogic.cs b/CarpentryWorkshop/CarpentryWorkshopBusinessLogic/BusinessLogics/ShopLogic.cs index 128bf55..54f1dde 100644 --- a/CarpentryWorkshop/CarpentryWorkshopBusinessLogic/BusinessLogics/ShopLogic.cs +++ b/CarpentryWorkshop/CarpentryWorkshopBusinessLogic/BusinessLogics/ShopLogic.cs @@ -66,7 +66,7 @@ namespace CarpentryWorkshopBusinessLogic.BusinessLogics }); if (wood == null) { - throw new ArgumentException($"Поставка: Товар с id:{model.WoodId} не найденн"); + throw new ArgumentException($"Поставка: Товар с id:{model.WoodId} не найден"); } shop.ShopWoods.Add(model.WoodId, (wood, model.Count)); } @@ -157,10 +157,10 @@ namespace CarpentryWorkshopBusinessLogic.BusinessLogics { return false; } - _logger.LogInformation("Check pizza count in all shops"); + _logger.LogInformation("Check wood count in all shops"); if (_shopStorage.Sale(model)) { - _logger.LogInformation("Selling sucsess"); + _logger.LogInformation("Selling success"); return true; } _logger.LogInformation("Selling failed"); diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormSell.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormSell.Designer.cs index d6d1cf1..f9909f9 100644 --- a/CarpentryWorkshop/CarpentryWorkshopView/FormSell.Designer.cs +++ b/CarpentryWorkshop/CarpentryWorkshopView/FormSell.Designer.cs @@ -107,7 +107,7 @@ Margin = new Padding(3, 2, 3, 2); Name = "FormSell"; Text = "Продажа изделий"; - Load += FormSellingPizza_Load; + Load += FormSellingWood_Load; ResumeLayout(false); PerformLayout(); } diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormSell.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormSell.cs index c897230..f041397 100644 --- a/CarpentryWorkshop/CarpentryWorkshopView/FormSell.cs +++ b/CarpentryWorkshop/CarpentryWorkshopView/FormSell.cs @@ -30,7 +30,7 @@ namespace CarpentryWorkshopView _logicS = logicS; } - private void FormSellingPizza_Load(object sender, EventArgs e) + private void FormSellingWood_Load(object sender, EventArgs e) { _woodList = _logicP.ReadList(null); if (_woodList != null)