Exemple #1
0
        //============================= - - - - - -  Génération des documents  - - - - - ========================//

        private void Attestation_clik(object sender, RoutedEventArgs e)
        {
            Génération_document win = new Génération_document();
            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.valid.Background   = redBrush;
            win.one.Background     = redBrush;
            win.two.Background     = redBrush;
            win.three.Background   = redBrush;
            win.four.Background    = redBrush;


            win.valid.BorderThickness = new Thickness(0);
            win.one.BorderThickness   = new Thickness(0);
            win.two.BorderThickness   = new Thickness(0);
            win.three.BorderThickness = new Thickness(0);
            win.four.BorderThickness  = new Thickness(0);
            win.Show();
        }
Exemple #2
0
 private void Document_click(object sender, RoutedEventArgs e)
 {
     Génération_document win = new Génération_document();
     win.Show();
 }