Example #1
0
        //============================= - - - - - -  Annuaire mosaique  - - - - - ========================//
        private void ann_click(object sender, RoutedEventArgs e)
        {
            Annuaire        win = new Annuaire();
            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.retour.Background            = redBrush;
            win.retour.BorderThickness       = new Thickness(0);
            win.search.Background            = redBrush;
            win.search.BorderThickness       = new Thickness(0);
            win.searchbutton.Background      = redBrush;
            win.searchbutton.BorderThickness = new Thickness(0);
            win.Show();
        }
Example #2
0
        private void condiat_click(object sender, RoutedEventArgs e)
        {
            Annuaire win = new Annuaire();

            win.Show();
        }