AppStore.Templates.SpellingsPage.Next_Click C# (CSharp) Method

Next_Click() private method

It populates the next question into the current view.
private Next_Click ( object sender, RoutedEventArgs e ) : void
sender object Object Sender is a parameter called Sender that contains a reference to the control/object that raised the event.
e Windows.UI.Xaml.RoutedEventArgs RoutedEventArgs e is a parameter called e that contains the event data, see the RoutedEventArgs MSDN page for more information.
return void
        private void Next_Click(object sender, RoutedEventArgs e)
        {
            if (puzzle.getActiveCount() == puzzle.getSpellingsList().Count - 1)
            {
                Frame.Navigate(typeof(ScorePage));
            }
            puzzle.setActiveCount(puzzle.getActiveCount() + 1);
            PuzzleNumber.Text = "Word #" + (puzzle.getActiveCount() + 1) + " out of " + puzzle.getSpellingsList().Count;
            Next.IsEnabled = false; Spell.IsEnabled = false;
        }