private void Submit(object sender, RoutedEventArgs e)
 {
     MementoCaretaker.Backup();
     QuestionIterator.Next();
     QuestionGrid.Children.Clear();
     QuestionGrid.Children.Add(QuestionIterator.GetGrid());
     TestProgressBar.Value = ++index;
 }
示例#2
0
        private void Submit(object sender, RoutedEventArgs e)
        {
            MementoCaretaker.Backup();
            QuestionIterator.Next();
            QuestionGrid.Children.Clear();
            QuestionGrid.Children.Add(QuestionIterator.GetGrid());

            Score.Text = QuestionIterator.GetScore().ToString() + " pkt.";
        }