private void btnTasaDescuento_Click(object sender, EventArgs e) { descuento = txtDescuentoBancario.Value; tiempo = txtTiempo.Value; sumaSolicitada = txtSumaSolicitada.Value; txtResultado.Value = 100 * DescuentoBancario.CalcularTasaDescuento(descuento, sumaSolicitada, tiempo); panelResultado.Visible = true; }