From d470d1128337bf21eae61371fb851ba8bc362c8e Mon Sep 17 00:00:00 2001 From: antoc0der <1@DESKTOP-K1L8ND3> Date: Wed, 27 Mar 2024 15:56:18 +0400 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=88=D0=B5=D0=BB=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D0=B0=D0=BD=D0=B3=D0=BB=D0=B8=D0=B9=D1=81=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FlowerShopBusinessLogic/OrderLogic.cs | 4 ++-- FlowerShopDatabaseImplement/OrderStorage.cs | 16 ---------------- ProjectFlowerShop/MainForm.cs | 3 --- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/FlowerShopBusinessLogic/OrderLogic.cs b/FlowerShopBusinessLogic/OrderLogic.cs index f7efbde..82423ce 100644 --- a/FlowerShopBusinessLogic/OrderLogic.cs +++ b/FlowerShopBusinessLogic/OrderLogic.cs @@ -132,7 +132,7 @@ namespace FlowerShopBusinessLogic.BusinessLogic { if (count <= 0) { - _logger.LogWarning("Check then supply operation error. IceCream count < 0."); + _logger.LogWarning("Check then supply operation error. Flowers count < 0."); return false; } @@ -144,7 +144,7 @@ namespace FlowerShopBusinessLogic.BusinessLogic if (freeSpace - count < 0) { - _logger.LogWarning("Check then supply operation error. There's no place for new IceCream in shops."); + _logger.LogWarning("Check then supply operation error. There's no place for new Flowers in shops."); return false; } diff --git a/FlowerShopDatabaseImplement/OrderStorage.cs b/FlowerShopDatabaseImplement/OrderStorage.cs index e163d79..cd4b265 100644 --- a/FlowerShopDatabaseImplement/OrderStorage.cs +++ b/FlowerShopDatabaseImplement/OrderStorage.cs @@ -79,21 +79,5 @@ namespace FlowerShopDatabaseImplement.Implements } return null; } - - //public static OrderViewModel AccessFlowerStorage(OrderViewModel model) - //{ - // if (model == null) - // return null; - // using var context = new FlowerShopDataBase(); - // foreach (var flower in context.Flowers) - // { - // if (flower.Id == model.FlowerId) - // { - // model.FlowerName = flower.FlowerName; - // break; - // } - // } - // return model; - //} } } diff --git a/ProjectFlowerShop/MainForm.cs b/ProjectFlowerShop/MainForm.cs index cf1b07a..5b4d88f 100644 --- a/ProjectFlowerShop/MainForm.cs +++ b/ProjectFlowerShop/MainForm.cs @@ -34,10 +34,7 @@ namespace ProjectFlowerShop { form.ShowDialog(); } - } - - private void MainForm_Load(object sender, EventArgs e) { LoadData();