private void btnAceptar_Click(object sender, EventArgs e)
        {
            DialogResult respuesta;

            respuesta = MessageBox.Show("¿Registar pago?", "AVISO", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (respuesta == DialogResult.Yes)
            {
                Pago oPago = new Pago();
                oPago.CUO_Codigo  = Convert.ToInt32(cmbCuota.SelectedValue);
                oPago.PAG_Fecha   = Convert.ToDateTime(dtpFecha.Text);
                oPago.PAG_Importe = Convert.ToDecimal(txtImporte.Text);

                TrabajarPagos.agregarPago(oPago);

                MessageBox.Show("El pago se ha efectuado.", "AVISO", MessageBoxButtons.OK, MessageBoxIcon.Information);

                TrabajarCuotas.cambiarEstadoCuota(oPago.CUO_Codigo);

                int nro = Convert.ToInt32(cmbPrestamo.SelectedValue);

                if (TrabajarCuotas.traerCuotaPrestamo(nro).Rows.Count <= 0)
                {
                    TrabajarPrestamos.cambiarEstadoPrestamo(nro);
                }
            }
            ClaseUtil.limpiarFormulario(this);
        }
 private void loadCmbCuota(int nro)
 {
     if (TrabajarCuotas.traerCuotaPrestamo(nro).Rows.Count > 0)
     {
         cmbCuota.DataSource    = TrabajarCuotas.traerCuotaPrestamo(nro);
         cmbCuota.DisplayMember = "cuo_numero";
         cmbCuota.ValueMember   = "cuo_codigo";
     }
     else
     {
         MessageBox.Show("El cliente no tiene cuotas pendientes.", "AVISO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         ClaseUtil.limpiarFormulario(this);
     }
 }