private void supprimerPlage(object sender, RoutedEventArgs e) { try { EnsemblePlageORM.deletePlage((EnsemblesViewModel)listeEnsemble.SelectedItem, (PlageViewModel)listeEnsemblePlages.SelectedItem); listeEnsemblePlages.ItemsSource = PlageEnsembleORM.getplages((EnsemblesViewModel)listeEnsemble.SelectedItem); } catch { } }
private void supprimer_ensemble(object sender, RoutedEventArgs e) { try { EnsemblePlageORM.delete((EnsemblesViewModel)listeEnsemble.SelectedItem); listeEnsemble.ItemsSource = EnsemblePlageORM.listeEnsembles(); } catch { } }
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 { } }
public PageEnsemblePlages() { InitializeComponent(); ld = EnsemblePlageORM.listeEnsembles(); lps = PlageORM.listePlage(); listePlages.ItemsSource = lps; listeEnsemble.ItemsSource = ld; listeEnsemblePlages.ItemsSource = lp; }
public PageEtude() { InitializeComponent(); ld = EtudeORM.listeEtudes(); leq = EquipeORM.listeEquipes(); lep = EnsemblePlageORM.listeEnsembles(); listeEtudes.ItemsSource = ld; listEnsembles.ItemsSource = lep; listEquipes.ItemsSource = leq; }
private void AddEnsemble_Click(object sender, RoutedEventArgs e) { EnsemblePlageORM.insertEnsemble(new EnsemblesViewModel(nomEnsembleTextBox.Text)); listeEnsemble.ItemsSource = EnsemblePlageORM.listeEnsembles(); }