Exemple #1
0
        private void ajout_click(object sender, RoutedEventArgs e)
        {
            Congées         win = new Congées(1);
            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.dragmenu.BorderBrush   = redBrush;
            win.vis.Background         = redBrush;
            win.vis.BorderThickness    = new Thickness(0);
            win.but.Background         = redBrush;
            win.but.BorderThickness    = new Thickness(0);
            win.validé.Background      = redBrush;
            win.validé.BorderThickness = new Thickness(0);

            win.formulaire.Background      = redBrush;
            win.formulaire.BorderThickness = new Thickness(0);
            win.dono.Background            = redBrush;
            win.dono.BorderThickness       = new Thickness(0);
            win.Show();
        }
        private void ajout_click(object sender, RoutedEventArgs e)
        {
            Congées win = new Congées(1);

            win.Show();
        }
        private void planing_click(object sender, RoutedEventArgs e)
        {
            Congées win = new Congées(0);

            win.Show();
        }