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(); }
public Guess() { GuessColors = new GuessColor[4]; Correct = false; for (int i = 0; i < 4; i++) { GuessColors[i] = new GuessColor(); } }
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); } }
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); } }