ушел по английски

This commit is contained in:
antoc0der 2024-03-27 15:56:18 +04:00
parent 2eb03ea5c1
commit d470d11283
3 changed files with 2 additions and 21 deletions

View File

@ -132,7 +132,7 @@ namespace FlowerShopBusinessLogic.BusinessLogic
{ {
if (count <= 0) 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; return false;
} }
@ -144,7 +144,7 @@ namespace FlowerShopBusinessLogic.BusinessLogic
if (freeSpace - count < 0) 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; return false;
} }

View File

@ -79,21 +79,5 @@ namespace FlowerShopDatabaseImplement.Implements
} }
return null; 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;
//}
} }
} }

View File

@ -34,10 +34,7 @@ namespace ProjectFlowerShop
{ {
form.ShowDialog(); form.ShowDialog();
} }
} }
private void MainForm_Load(object sender, EventArgs e) private void MainForm_Load(object sender, EventArgs e)
{ {
LoadData(); LoadData();