コード例 #1
0
        private void _CommandAfficherCommande_Fournisseur_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            //J'attends d'avoir la main pour lancer l'affichage (attente du mutex) pour ne pas avoir 2 chargements en même temps
            this._mutex.WaitOne();
            this.startThread();

            //Affichage du chargement en bas à gauche de la fenêtre (indicateur d'avancement utilisateur)
            this.progressBarMainWindow.IsIndeterminate = true;
            this.changementTexteStatusBar("Chargement des Commandes Fournisseur en cours ...");

            //Instanciation du UserControl Commande fournisseur
            ((App)App.Current).refreshEDMX();
            ListeCommandeFournisseurControl listeCommandeFournisseurControl = new ListeCommandeFournisseurControl();

            //Insertion du UserControl dans la fenêtre
            this._BorderContent.Child = listeCommandeFournisseurControl;

            //Mise en couleur de l'icone pour plus de clarté (remise à zéro de toutes les icones + mise en couleur)
            this.resetCouleurs();
            this.CommandesClients.Background = ((App)App.Current).SaveFocusedBackground;
            this.CommandesClients.BorderBrush = ((App)App.Current).SaveFocusedBorderBrush;
        }
コード例 #2
0
 private void LookCommande_Click_1(object sender, RoutedEventArgs e)
 {
     if (this._comboBoxFilterCommandeBL.SelectedItem != null)
     {
         ListeCommandeFournisseurControl listeCommandeFournisseurControl = new ListeCommandeFournisseurControl();
         listeCommandeFournisseurControl.Look((Commande_Fournisseur)this._comboBoxFilterCommandeBL.SelectedItem);
     }
 }