private void Page_Loaded(object sender, RoutedEventArgs e) { LesPilotes = AccesAuxDonneesPilote.ChargerPilotes(); ComboBoxPiloteArrivee.DataContext = LesPilotes; ComboBoxPiloteDepart.DataContext = LesPilotes; LesAgents = AccesAuxDonneesAgent.ChargerAgents(); ComboBoxAgent.DataContext = LesAgents; LesNavires = AccesAuxDonneesNavire.ChargerNavires(); ComboBoxNumLlyods.DataContext = LesNavires; LesPorts = AccesAuxDonneesPort.ChargerPorts(); ComboBoxPorProv.DataContext = LesPorts; ComboBoxPorDest.DataContext = LesPorts; LesTypesDeCargaisons = AccesAuxDonneesTypesDeCargaisons.ChargerTypesDeCargaisons(); ComboBoxTypeFret.DataContext = LesTypesDeCargaisons; }
public PageListeTypesDeCargaisons() { InitializeComponent(); LesTypesDeCargaisons = AccesAuxDonneesTypesDeCargaisons.ChargerTypesDeCargaisons(); this.DataContext = LesTypesDeCargaisons; }