Exemple #1
0
 public override void NextQuestion(object sender, RoutedEventArgs e)
 {
     ProcessArrivedAnswer(arrivedAnswer.Text, arrivedAnswer.Right, arrivedAnswer.SelectedIndex);
     arrivedAnswer = new ArrivedData(string.Empty, false, -1);
     taskTimer.Start();
     questionTimer.Start();
     waitingForNextEvent = false;
 }
Exemple #2
0
 public override void AnswerArrived(string text, bool isRight, int selectedIndex)
 {
     if (automaticShifting)
     {
         ProcessArrivedAnswer(text, isRight, selectedIndex);
     }
     else
     {
         taskTimer.Stop();
         questionTimer.Stop();
         waitingForNextEvent = true;
         arrivedAnswer       = new ArrivedData(text, isRight, selectedIndex);
     }
 }