private void Lancer_Click(object sender, EventArgs e) { List <string> fiches = new List <string>(); foreach (object o in listeLivre.CheckedItems) { fiches.Add(Convert.ToString(o)); } UtilitairesIntegrationBd.IntegrationFiches(path, fiches); }
private void Repertoires_Click(object sender, EventArgs e) { folderBrowserDialog1.ShowDialog(); cheminLivre.Items.Add(folderBrowserDialog1.SelectedPath); cheminLivre.SelectedIndex = cheminLivre.Items.Count - 1; listeLivre.Items.Clear(); path = Convert.ToString(cheminLivre.SelectedItem); List <string> Fiches = UtilitairesIntegrationBd.LesFiches(path); foreach (string fiche in Fiches) { listeLivre.Items.Add(fiche); } rep.Add(cheminLivre.SelectedIndex.ToString()); }
public Form1() { InitializeComponent(); List <string> Fiches = UtilitairesIntegrationBd.LesFiches(path); cheminLivre.Items.Add(path); cheminLivre.SelectedIndex = 0; foreach (string fiche in Fiches) { listeLivre.Items.Add(fiche); } }