private void btnTiempo_Click(object sender, EventArgs e) { descuento = txtDescuentoBancario.Value; sumaSolicitada = txtSumaSolicitada.Value; tasaDescuento = txtTasaDescuento.Value; txtResultado.Value = DescuentoBancario.CalcularTiempo(descuento, sumaSolicitada, tasaDescuento); panelResultado.Visible = true; }
private void btnSumaSolicitada_Click(object sender, EventArgs e) { descuento = txtDescuentoBancario.Value; tiempo = txtTiempo.Value; tasaDescuento = txtTasaDescuento.Value; txtResultado.Value = DescuentoBancario.CalcularSumaSolicitada(descuento, tasaDescuento, tiempo); panelResultado.Visible = true; }