PIbd-21 Tabeev A.P. Lab1 base #2

Closed
TabeevAlexander wants to merge 2 commits from LabWork01_base into main
Showing only changes of commit ed6a482aa5 - Show all commits

View File

@ -64,9 +64,9 @@ namespace CarpentryWorkshopView
try
{
int id = Convert.ToInt32(comboBoxWood.SelectedValue);
var product = _logicW.ReadElement(new WoodSearchModel { Id = id });
var wood = _logicW.ReadElement(new WoodSearchModel { Id = id });
int count = Convert.ToInt32(textBoxCount.Text);
textBoxSum.Text = Math.Round(count * (product?.Price ?? 0), 2).ToString();
textBoxSum.Text = Math.Round(count * (wood?.Price ?? 0), 2).ToString();
_logger.LogInformation("Расчет суммы заказа");
}
catch (Exception ex)