private void NewEntrepriseMere_Click(object sender, RoutedEventArgs e) { ParametreEntrepriseMereControl parametreEntrepriseMereControl = new ParametreEntrepriseMereControl(); ParametresMain parametresMain = new ParametresMain(((App)App.Current)._theMainWindow); Entreprise_Mere entreprise_mere = parametresMain.AddEntrepriseMere(parametreEntrepriseMereControl); this.listEntreprise_Mere = new ObservableCollection<Entreprise_Mere>(((App)App.Current).mySitaffEntities.Entreprise_Mere.OrderBy(ent => ent.Nom)); this._ComboBoxEntrepriseMere.SelectedItem = entreprise_mere; }
private void _CommandAfficherEntrepriseMere_Executed(object sender, ExecutedRoutedEventArgs e) { this._mutex.WaitOne(); this.startThread(); this.progressBarMainWindow.IsIndeterminate = true; this.textBlockMainWindow.Text = "Chargement des entreprises mères en cours ..."; ((App)App.Current).refreshEDMX(); ParametreEntrepriseMereControl parametreEntrepriseMereControl = new ParametreEntrepriseMereControl(); this._BorderContent.Child = parametreEntrepriseMereControl; //Mise en couleur de l'icone pour plus de clarté (remise à zéro de toutes les icones + mise en couleur) this.resetCouleurs(); this.EntrepriseMere.Background = ((App)App.Current).SaveFocusedBackground; this.EntrepriseMere.BorderBrush = ((App)App.Current).SaveFocusedBorderBrush; }
private void LookEntrepriseMere_Click(object sender, RoutedEventArgs e) { if (this._ComboBoxEntrepriseMere.SelectedItem != null) { ParametreEntrepriseMereControl parametreEntrepriseMereControl = new ParametreEntrepriseMereControl(); ParametresMain parametresMain = new ParametresMain(((App)App.Current)._theMainWindow); parametresMain.LookEntrepriseMere(parametreEntrepriseMereControl, (Entreprise_Mere)this._ComboBoxEntrepriseMere.SelectedItem); } }