ушел по английски
This commit is contained in:
parent
2eb03ea5c1
commit
d470d11283
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user