Beispiel #1
0
        private void LoadAllAteliers(String champ, String texte)
        {
            List <Atelier> reader = AtelierC.GetAllatelier(champ, texte);

            DataGridAtelier.ItemsSource = null;
            DataGridAtelier.ItemsSource = reader;
        }
Beispiel #2
0
        private void LoadAllAteliers()
        {
            List <Atelier> reader = AtelierC.GetAllatelier();

            DataGridAtelier.ItemsSource = null;
            DataGridAtelier.ItemsSource = reader;
        }
Beispiel #3
0
 private void chargerNomAtelier()
 {
     ls.Clear();
     ls = AtelierC.GetAllatelier();
     lN.Clear();
     for (int i = 0; i < ls.Count; i++)
     {
         lN.Add(ls.ElementAt(i).NOM);
     }
     CBAtelier.Items.Clear();
     for (int i = 0; i < lN.Count; i++)
     {
         ComboboxItem item = new ComboboxItem();
         item.Text  = lN.ElementAt(i);
         item.Value = i;
         CBAtelier.Items.Add(item);
     }
     CBAtelier.SelectedIndex = 0;
 }