private void Classe_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.Classe.Text != "") { this.Tarif.ItemsSource = DAL_Tarif.SelectNomTarifsByClasse(DAL_Classe.FindByName(this.Classe.Text).Id); this.Tarif.SelectedValue = DAL_Tarif.SelectNomTarifsByClasse(DAL_Classe.FindByName(this.Classe.Text).Id).First(); } }
public TarifVolPage(int _vol) { vol = _vol; InitializeComponent(); AfficherTarifVol(); this.Classe.ItemsSource = DAL_Classe.SelectNomClasses(); this.Classe.SelectedValue = DAL_Classe.SelectNomClasses().First(); this.Tarif.ItemsSource = DAL_Tarif.SelectNomTarifsByClasse(DAL_Classe.FindByName(this.Classe.Text).Id); this.Tarif.SelectedValue = DAL_Tarif.SelectNomTarifsByClasse(DAL_Classe.FindByName(this.Classe.Text).Id).First(); }