private void nudDescuento_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { nudTotal.Value = nudSubTotal.Value - CalcularDescuento.Calcular(nudDescuento.Value, nudSubTotal.Value); Total = nudTotal.Value; } }
private void ActualizarPrecioPublico() { nudPrecioPublico.Value = nudPrecioCosto.Value + CalcularDescuento.Calcular(_rentabilidad, nudPrecioCosto.Value); }