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

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

            listePlages.ItemsSource         = lps;
            listeEnsemble.ItemsSource       = ld;
            listeEnsemblePlages.ItemsSource = lp;
        }
Exemplo n.º 5
0
        public PageEtude()
        {
            InitializeComponent();

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

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