private void prestitiRecenti() { clsLibro l = new clsLibro("Biblioteca.mdf"); tabellaPrestati = l.prestati(); dgvPrestati.DataSource = tabellaPrestati; cmbPrestatiNONVISIBILE.DataSource = tabellaPrestati; cmbPrestatiNONVISIBILE.ValueMember = "CodLibro"; cmbPrestatiNONVISIBILE.DisplayMember = "CodLibro"; cmbPrestatiNONVISIBILE.SelectedIndex = -1; l.dispose(); }
private void prestitiRecenti() { clsLibro l = new clsLibro("Biblioteca.mdf"); tabellaPrestati = l.prestati(); globals.DATAGRID.DataSource = tabellaPrestati; globals.COMBO.DataSource = tabellaPrestati; globals.COMBO.ValueMember = "CodLibro"; globals.COMBO.DisplayMember = "CodLibro"; globals.COMBO.SelectedIndex = -1; l.dispose(); }