Exemple #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 { }
 }
Exemple #2
0
 private void supprimer_ensemble(object sender, RoutedEventArgs e)
 {
     try
     {
         EnsemblePlageORM.delete((EnsemblesViewModel)listeEnsemble.SelectedItem);
         listeEnsemble.ItemsSource = EnsemblePlageORM.listeEnsembles();
     }
     catch { }
 }
Exemple #3
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 { }
 }
Exemple #4
0
        public PageEnsemblePlages()
        {
            InitializeComponent();

            ld  = EnsemblePlageORM.listeEnsembles();
            lps = PlageORM.listePlage();

            listePlages.ItemsSource         = lps;
            listeEnsemble.ItemsSource       = ld;
            listeEnsemblePlages.ItemsSource = lp;
        }
Exemple #5
0
        public PageEtude()
        {
            InitializeComponent();

            ld  = EtudeORM.listeEtudes();
            leq = EquipeORM.listeEquipes();
            lep = EnsemblePlageORM.listeEnsembles();

            listeEtudes.ItemsSource   = ld;
            listEnsembles.ItemsSource = lep;
            listEquipes.ItemsSource   = leq;
        }
Exemple #6
0
 private void AddEnsemble_Click(object sender, RoutedEventArgs e)
 {
     EnsemblePlageORM.insertEnsemble(new EnsemblesViewModel(nomEnsembleTextBox.Text));
     listeEnsemble.ItemsSource = EnsemblePlageORM.listeEnsembles();
 }