WIP: ПИбд-23 Тихоненков Алексей Евгеньевич Лабораторная работа №4 (Усложненная) #13

Closed
YourDax wants to merge 11 commits from Lab4HARD into Lab4
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 363b43ce09 - Show all commits

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)