private void _buttonModifierLitige_Click(object sender, RoutedEventArgs e)
        {
            if (this._dataGridLitigeFacture_SansBL.SelectedItems.Count <= 0)
            {
                MessageBox.Show("Vous devez sélectionner un litige à modifier.", "Erreur", MessageBoxButton.OK, MessageBoxImage.Stop);
            }
            else if (this._dataGridLitigeFacture_SansBL.SelectedItems.Count > 1)
            {
                MessageBox.Show("Vous ne devez sélectionner qu'un litige à modifier.", "Erreur", MessageBoxButton.OK, MessageBoxImage.Stop);
            }
            else if (this._dataGridLitigeFacture_SansBL.SelectedItem != null)
            {
                LitigeFactureWindow litigeFactureWindow = new LitigeFactureWindow();
                litigeFactureWindow.DataContext = (Litige_Facture_Fournisseur)this._dataGridLitigeFacture_SansBL.SelectedItem;

                bool? dialogResult = litigeFactureWindow.ShowDialog();

                if (dialogResult.HasValue && dialogResult.Value == true)
                {
                    this._dataGridLitigeFacture_SansBL.Items.Refresh();
                }
                else
                {
                    try
                    {
                        ((App)App.Current).mySitaffEntities.Refresh(System.Data.Objects.RefreshMode.StoreWins, (Litige_Facture_Fournisseur)litigeFactureWindow.DataContext);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
        }
        private void _buttonAjouterLitige_Click(object sender, RoutedEventArgs e)
        {
            LitigeFactureWindow litigeFactureWindow = new LitigeFactureWindow();
            litigeFactureWindow.DataContext = new Litige_Facture_Fournisseur();
            ((Litige_Facture_Fournisseur)litigeFactureWindow.DataContext).Facture_Fournisseur1 = (Facture_Fournisseur)this.DataContext;

            bool? dialogResult = litigeFactureWindow.ShowDialog();

            if (dialogResult.HasValue && dialogResult.Value == true)
            {

            }
            else
            {
                try
                {
                    ((App)App.Current).mySitaffEntities.Detach((Litige_Facture_Fournisseur)litigeFactureWindow.DataContext);
                }
                catch (Exception)
                {

                }
                this._dataGridLitigeFacture_SansBL.Items.Refresh();
            }
        }