private void Undo() { UndoCommand.Undo(); QuestionGrid.Children.Clear(); QuestionGrid.Children.Add(QuestionIterator.GetGrid()); Score.Text = QuestionIterator.GetScore().ToString() + " pkt."; }
private void Undo(object sender, RoutedEventArgs e) { UndoCommand.Undo(); QuestionGrid.Children.Clear(); QuestionGrid.Children.Add(QuestionIterator.GetGrid()); if (UndoSetting == 0) { TestProgressBar.Value = --index; } else { index = 0; TestProgressBar.Value = 0; } }