Exemple #1
0
        private void Ellipse_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Ellipse           ellipse           = (Ellipse)sender;
            BindingExpression bindingExpression = ellipse.GetBindingExpression(Ellipse.FillProperty);
            GuessColor        guessColor        = (GuessColor)bindingExpression.ResolvedSource;

            guessColor.ToggleColor();
        }
Exemple #2
0
 public Guess()
 {
     GuessColors = new GuessColor[4];
     Correct     = false;
     for (int i = 0; i < 4; i++)
     {
         GuessColors[i] = new GuessColor();
     }
 }
Exemple #3
0
 public Solution()
 {
     GuessColors = new GuessColor[4];
     Random random = new Random();
     for (int i=0; i<4; i++)
     {
         int randomNumber = random.Next(0, 6);
         GuessColors[i] = new GuessColor(randomNumber);
     }         
 }
Exemple #4
0
        public Solution()
        {
            GuessColors = new GuessColor[4];
            Random random = new Random();

            for (int i = 0; i < 4; i++)
            {
                int randomNumber = random.Next(0, 6);
                GuessColors[i] = new GuessColor(randomNumber);
            }
        }
Exemple #5
0
 public Guess()
 {
     GuessColors = new GuessColor[4];
     Correct = false;
     for (int i = 0; i < 4; i++)
     {
         GuessColors[i] = new GuessColor();
     }
 }