private void NewCivilite_Click(object sender, RoutedEventArgs e)
 {
     ParametreCiviliteControl parametreCiviliteControl = new ParametreCiviliteControl();
     Civilite civilite = parametreCiviliteControl.Add();
     if (civilite != null)
     {
         this.CivilityList.Add(civilite);
         this.CivilityList = new ObservableCollection<Civilite>(this.CivilityList.OrderBy(civ => civ.Libelle_Long));
         this._ComboBoxContactCivilité.SelectedItem = civilite;
     }
     else
     {
         this._ComboBoxContactCivilité.SelectedItem = null;
     }
 }
        private void _CommandAfficherCivilites_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            this._mutex.WaitOne();
            this.startThread();

            this.progressBarMainWindow.IsIndeterminate = true;
            this.textBlockMainWindow.Text = "Chargement des civilites en cours ...";

            ((App)App.Current).refreshEDMX();
            ParametreCiviliteControl parametreCiviliteControl = new ParametreCiviliteControl();

            this._BorderContent.Child = parametreCiviliteControl;

            //Mise en couleur de l'icone pour plus de clarté (remise à zéro de toutes les icones + mise en couleur)
            this.resetCouleurs();
            this.Civilités.Background = ((App)App.Current).SaveFocusedBackground;
            this.Civilités.BorderBrush = ((App)App.Current).SaveFocusedBorderBrush;
        }
 private void LookCivilite_Click(object sender, RoutedEventArgs e)
 {
     if (this._ComboBoxContactCivilité.SelectedItem != null)
     {
         ParametreCiviliteControl parametreCiviliteControl = new ParametreCiviliteControl();
         parametreCiviliteControl.Look((Civilite)this._ComboBoxContactCivilité.SelectedItem);
     }
 }