private void _buttonShop_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         this.shopCommandeWindow.Close();
         this.shopCommandeWindow = null;
     }
     catch (Exception) { }
     this.shopCommandeWindow = new ShopCommandeWindow();
     try
     {
         this.shopCommandeWindow._ComboBoxFournisseur.SelectedItem = this._comboBoxFournisseur.SelectedItem;
     }
     catch (Exception) { }
     this.shopCommandeWindow.sortieAtelierWindow = this;
     this.shopCommandeWindow.Show();
 }
        private void _buttonOk_Click(object sender, RoutedEventArgs e)
        {
            //Validation si cellule en édition
            try
            {
                this._dataGridContenu.CommitEdit();
            }
            catch (Exception)
            {

            }

            //Recalcul du contenu
            this.calculer();

            if (this.Verif_Generale())
            {
                this.DialogResult = true;
                try
                {
                    this.shopCommandeWindow.Close();
                    this.shopCommandeWindow = null;
                }
                catch (Exception) { }
                try
                {
                    this.importCommandeWindow.Close();
                    this.importCommandeWindow = null;
                }
                catch (Exception) { }
                this.Close();
            }
        }
        private void _CommandOpenShop_Executed_1(object sender, ExecutedRoutedEventArgs e)
        {
            this.resetCouleurs();

            this.viderBorderContent();

            this.progressBarMainWindow.IsIndeterminate = true;
            this.changementTexteStatusBar("Affichage du Shop en cours ...");

            ShopCommandeWindow shopCommandeWindow = new ShopCommandeWindow();
            shopCommandeWindow._BoutonImporter.Visibility = Visibility.Collapsed;
            shopCommandeWindow.ShowDialog();

            this.progressBarMainWindow.IsIndeterminate = false;
            this.changementTexteStatusBar("Affichage du Shop terminé.");
        }
 private void _buttonAnnuler_Click(object sender, RoutedEventArgs e)
 {
     this.DialogResult = false;
     try
     {
         this.shopCommandeWindow.Close();
         this.shopCommandeWindow = null;
     }
     catch (Exception) { }
     try
     {
         this.importCommandeWindow.Close();
         this.importCommandeWindow = null;
     }
     catch (Exception) { }
     this.Close();
 }
 private void _buttonShop_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         this.shopCommandeWindow.Close();
     }
     catch (Exception) { }
     this.shopCommandeWindow = new ShopCommandeWindow();
     this.shopCommandeWindow._ComboBoxFournisseur.SelectedItem = ((Bon_Livraison)this.DataContext).Fournisseur1;
     this.shopCommandeWindow.bonLivraisonWindow = this;
     this.shopCommandeWindow.Show();
 }