This commit is contained in:
leoevgeniy 2024-04-15 18:11:52 +04:00
parent 88aa608435
commit 363b43ce09
3 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ namespace CarpentryWorkshopBusinessLogic.BusinessLogics
});
if (wood == null)
{
throw new ArgumentException($"Поставка: Товар с id:{model.WoodId} не найденн");
throw new ArgumentException($"Поставка: Товар с id:{model.WoodId} не найден");
}
shop.ShopWoods.Add(model.WoodId, (wood, model.Count));
}
@ -157,10 +157,10 @@ namespace CarpentryWorkshopBusinessLogic.BusinessLogics
{
return false;
}
_logger.LogInformation("Check pizza count in all shops");
_logger.LogInformation("Check wood count in all shops");
if (_shopStorage.Sale(model))
{
_logger.LogInformation("Selling sucsess");
_logger.LogInformation("Selling success");
return true;
}
_logger.LogInformation("Selling failed");

View File

@ -107,7 +107,7 @@
Margin = new Padding(3, 2, 3, 2);
Name = "FormSell";
Text = "Продажа изделий";
Load += FormSellingPizza_Load;
Load += FormSellingWood_Load;
ResumeLayout(false);
PerformLayout();
}

View File

@ -30,7 +30,7 @@ namespace CarpentryWorkshopView
_logicS = logicS;
}
private void FormSellingPizza_Load(object sender, EventArgs e)
private void FormSellingWood_Load(object sender, EventArgs e)
{
_woodList = _logicP.ReadList(null);
if (_woodList != null)