private void FrmAltaPrestamos_Load(object sender, EventArgs e)
 {
     cargarClientes();
     cargarDestino();
     cargarPeriodo();
     if (GestionPrestamo.ListarPrestamos().Rows.Count == 0)
     {
         this.id = 1;
     }
     else
     {
         this.id = GestionPrestamo.ListarPrestamos().Rows.Count + 1;
     }
     txtNumero.Text    = this.id.ToString();
     txtNumero.Enabled = false;
 }
Exemplo n.º 2
0
 public void cargar_Prestamos()
 {
     dgwPrestamos.DataSource = GestionPrestamo.ListarPrestamos();
     dgwPrestamos.Columns["Codigo_Destino"].Visible = false;
     dgwPrestamos.Columns["Codigo_Periodo"].Visible = false;
 }