private void nudAmount_ValueChanged(object sender, EventArgs e) { if (selectedProduct == null) { return; } int newAmount = Decimal.ToInt32(nudAmount.Value); selectedProduct.SetAmountOfProduct(newAmount); updateShowTotalPrice(); }
private void nudAmount_ValueChanged(object sender, EventArgs e) { if (selectedProduct == null) { return; } int newAmount = Decimal.ToInt32(nudAmount.Value); selectedProduct.SetAmountOfProduct(newAmount); updateShowTotalPrice(); }