예제 #1
0
 private void PageNavire_Loaded(object sender, RoutedEventArgs e)
 {
     ComboBoxNumCom.DataContext = AccesAuxDonneesCommandant.ChargerCommandants();
     ComboBoxCodPor.DataContext = AccesAuxDonneesPort.ChargerPorts();
     ComboBoxCTyNav.DataContext = AccesAuxDonneesTypeNavire.ChargerTypeNavire();
     ComboBoxNumArm.DataContext = AccesAuxDonneesArmateur.ChargerArmateurs();
 }
예제 #2
0
        private void buttonMaj_Click(object sender, RoutedEventArgs e)
        {
            Port PortAModifier = (Port)dataGridListePort.SelectedValue;

            AccesAuxDonneesPort.ModifierPort(PortAModifier);
            dataGridListePort.Items.Refresh();
        }
예제 #3
0
        private void buttonSupprimer_Click(object sender, RoutedEventArgs e)
        {
            Port PortASupprimer = (Port)dataGridListePort.SelectedValue;

            AccesAuxDonneesPort.SupprimerPort(PortASupprimer);
            LesPorts.Remove(PortASupprimer);
            dataGridListePort.Items.Refresh();
        }
예제 #4
0
        private void buttonEnregistrer_Click(object sender, RoutedEventArgs e)
        {
            LePort.CodePav = ComboBoxCodPav.Text;
            AccesAuxDonneesPort.AjouterPort(LePort);// Insertion de l'objet dans le BD

            // Raz des TextBox
            textBoxCodePort.Text = "";
            textBoxNomPort.Text  = "";
            ComboBoxCodPav.Text  = "";
        }
예제 #5
0
        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;
        }
예제 #6
0
 public PageListePort()
 {
     InitializeComponent();
     LesPorts         = AccesAuxDonneesPort.ChargerPorts();
     this.DataContext = LesPorts;
 }