Beispiel #1
0
        //============================= - - - - - -  Evaluation  - - - - - ========================//
        private void Tile_Click_2(object sender, RoutedEventArgs e)
        {
            User7           win = new User7();
            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.Show();
        }
Beispiel #2
0
        //========================  Click sur un des boutons de notification =============================//
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            User7 win = new User7();

            win.Show();
        }