ПИбд-23 Насыров Артур Газинурович Лабораторная работа №3 Усложненная #6
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
@ -34,10 +34,7 @@ namespace ProjectFlowerShop
|
||||
{
|
||||
form.ShowDialog();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void MainForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
LoadData();
|
||||
|
Loading…
Reference in New Issue
Block a user