Exemplo n.º 1
0
 private void btnBuscarDestino_Click(object sender, EventArgs e)
 {
     if (cmbDestino.SelectedIndex > -1)
     {
         destinoSeleccionado     = cmbDestino.Text;
         dgwPrestamos.DataSource = GestionPrestamo.BuscarPrestamoPorDestino(destinoSeleccionado);
         cargarPrestamosCantidadPorDestino((int)cmbDestino.SelectedValue);
         consultar = true;
     }
 }
Exemplo n.º 2
0
 private void rbDestino_CheckedChanged(object sender, EventArgs e)
 {
     consultar            = true;
     btnAgregar.Visible   = false;
     btnVerCuotas.Visible = false;
     btnAnular.Visible    = false;
     cargarDestino();
     gbContar.Visible = true;
     limpiarContadores();
     if (cmbDestino.SelectedIndex == -1)
     {
         cargar_Prestamos();
     }
     else
     {
         destinoSeleccionado     = cmbDestino.Text;
         dgwPrestamos.DataSource = GestionPrestamo.BuscarPrestamoPorDestino(destinoSeleccionado);
     }
     groupBuscar.Visible = false;
     gbDestino.Visible   = true;
 }