private void StatistiquesIhm_Load(object sender, EventArgs e) { chaineAImprimer = CalculerChaineAImprimer(); try { foreach (Bibliotheque bibliotheque in Bibliotheque.ListerToutes()) { cbBibliotheque.Items.Add(bibliotheque); } foreach (int annee in Emprunt.ListerAnnees()) { cbAnnee.Items.Add(annee); } foreach (Theme theme in Theme.Tous()) { themes.Add(theme); } } catch (SqlException ex) { MessageBox.Show(ex.ToString()); } }
private void btnListeThemes_Click(object sender, EventArgs e) { new ListeThemesIhm(Theme.Tous()).ShowDialog(); }