Пример #1
0
 private void supprimerPlage(object sender, RoutedEventArgs e)
 {
     try
     {
         EnsemblePlageORM.deletePlage((EnsemblesViewModel)listeEnsemble.SelectedItem, (PlageViewModel)listeEnsemblePlages.SelectedItem);
         listeEnsemblePlages.ItemsSource = PlageEnsembleORM.getplages((EnsemblesViewModel)listeEnsemble.SelectedItem);
     }
     catch { }
 }
Пример #2
0
 private void Ajouter_Plage(object sender, RoutedEventArgs e)
 {
     try
     {
         EnsemblePlageORM.ajouterPlage((EnsemblesViewModel)listeEnsemble.SelectedItem, (PlageViewModel)listePlages.SelectedItem);
         EnsemblesViewModel ensembles = (EnsemblesViewModel)listeEnsemble.SelectedItem;
         listeEnsemblePlages.ItemsSource = PlageEnsembleORM.getplages(ensembles);
     }
     catch { }
 }
Пример #3
0
        private void listeEnsemblePlage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            EnsemblesViewModel es = (EnsemblesViewModel)listeEnsemble.SelectedItem;

            listeEnsemblePlages.ItemsSource = PlageEnsembleORM.getplages((EnsemblesViewModel)listeEnsemble.SelectedItem);
        }