private void AnswerClicked(object sender, RoutedEventArgs e)
 {
     countDown.Stop();
     if ((sender as Button).Name == ViewModel.CorrectAnswer)
     {
         (sender as Button).Background = new SolidColorBrush(Colors.Green);
         correctAnswerQ = true;
     }
     else
     {
         (sender as Button).Background = new SolidColorBrush(Colors.Red);
         correctAnswerQ = false;
     }
     var temp = AnswerClickedEvent;
     var temp2 = new AnswerClickedEventArgs { correctAnswer = correctAnswerQ  };
     temp(this, temp2);
 }
Beispiel #2
0
 private void OnAnswerClick(object sender, AnswerClickedEventArgs e)
 {
     //if (e.correctAnswer)
     //{
     //    viewModel.MoveTeamForwardAfterAnswer();
     //}
     //else
     //{
     //    viewModel.MoveTeamBackwardAfterAnswer();
     //}
 }