Сделанная 1 лаба

This commit is contained in:
Табеев Александр 2024-03-10 17:17:42 +04:00
parent f831faa923
commit ed6a482aa5

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)