private void Submit(object sender, RoutedEventArgs e) { MementoCaretaker.Backup(); QuestionIterator.Next(); QuestionGrid.Children.Clear(); QuestionGrid.Children.Add(QuestionIterator.GetGrid()); TestProgressBar.Value = ++index; }
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."; }