Сделанная 1 лаба
This commit is contained in:
parent
f831faa923
commit
ed6a482aa5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user