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();