private void NextButton_Click(object sender, RoutedEventArgs e) { if (currentProblem < shownProblems.Length - 1) currentProblem++; ShowCurrentProblem(); }