private void ajouter_employée(object sender, RoutedEventArgs e) { ajout_employée win = new ajout_employée(); win.Show(); }
//==========// Partie Menu //==========// private void ajouter_employée(object sender, RoutedEventArgs e) { ajout_employée win = new ajout_employée(); SolidColorBrush redBrush; if (Client.couleur == "Taupe") { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString("BurlyWood"); } else if (Client.couleur == "Mauve") { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString("DarkMagenta"); } else if (Client.couleur == "Steel") { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString("LightGray"); } else if (Client.couleur == "Amber") { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString("Moccasin"); } else if (Client.couleur == "Cobalt") { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString("DarkBlue"); } else if (Client.couleur == "Emerald") { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString("DarkGreen"); } else { redBrush = (SolidColorBrush) new BrushConverter().ConvertFromString(Client.couleur); } win.colzone.Background = redBrush; win.button1.Background = redBrush; win.button1.BorderThickness = new Thickness(0); win.button2.Background = redBrush; win.button2.BorderThickness = new Thickness(0); win.cv.Background = redBrush; win.cv.BorderThickness = new Thickness(0); win.contrat.Background = redBrush; win.contrat.BorderThickness = new Thickness(0); win.contrat_charger.Background = redBrush; win.contrat_charger.BorderThickness = new Thickness(0); win.Show(); }