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

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

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

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

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