private void supprimer_ensemble(object sender, RoutedEventArgs e) { try { EnsemblePlageORM.delete((EnsemblesViewModel)listeEnsemble.SelectedItem); listeEnsemble.ItemsSource = EnsemblePlageORM.listeEnsembles(); } 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(); }