private void _CommandAfficher_AfficherSalaries_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            this._mutex.WaitOne();
            this.startThread();
            this.progressBarMainWindow.IsIndeterminate = true;
            this.changementTexteStatusBar("Chargement des salariés en cours ...");

            ((App)App.Current).refreshEDMX();
            ListeSalarieControl listeSalariesControl = new ListeSalarieControl();

            this._BorderContent.Child = listeSalariesControl;

            //Mise en couleur de l'icone pour plus de clarté (remise à zéro de toutes les icones + mise en couleur)
            this.resetCouleurs();
            this.Salaries.Background = ((App)App.Current).SaveFocusedBackground;
            this.Salaries.BorderBrush = ((App)App.Current).SaveFocusedBorderBrush;
        }
 private void NewChargeAffaire_Click(object sender, RoutedEventArgs e)
 {
     ListeSalarieControl listeSalarieControl = new ListeSalarieControl();
     Personne personne = ((App)App.Current)._theMainWindow.AddSalarie(listeSalarieControl);
     this.Charge_Affaire = new ObservableCollection<Salarie>(((App)App.Current).mySitaffEntities.Salarie.Where(sal => sal.Charge_Affaire == true).OrderBy(sal => sal.Personne.Nom).ThenBy(sal => sal.Personne.Prenom));
     if (personne == null)
     {
         this._ComboBoxChargeAffaire.SelectedItem = personne;
     }
     else
     {
         if (personne.Salarie != null)
         {
             if (personne.Salarie.Charge_Affaire == true)
             {
                 this._ComboBoxChargeAffaire.SelectedItem = personne;
             }
         }
     }
 }
 private void _buttonIntVoirNom_Click(object sender, RoutedEventArgs e)
 {
     if (this._comboBoxIntNom.SelectedItem != null)
     {
         ListeSalarieControl listeSalarieControl = new ListeSalarieControl();
         listeSalarieControl.Look(((Salarie)this._comboBoxIntNom.SelectedItem).Personne);
     }
 }
 private void LookChargeAffaire_Click(object sender, RoutedEventArgs e)
 {
     if (this._ComboBoxChargeAffaire.SelectedItem != null)
     {
         ListeSalarieControl listeSalarieControl = new ListeSalarieControl();
         ((App)App.Current)._theMainWindow.LookSalarie(listeSalarieControl, ((Salarie)this._ComboBoxChargeAffaire.SelectedItem).Personne);
     }
 }