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

Next_Click() private method

Executed when the Next Button is tapped. It populates the next question in 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 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 (iQuestionIndex == iNumberofQuestions - 2) { iQuestionIndex++; populateQuestion(iQuestionIndex); Next.Content = "Submit"; }
            else if (iQuestionIndex == iNumberofQuestions - 1)
            {
                Frame.Navigate(typeof(ScorePage));
            }
            else
            {
                iQuestionIndex++; populateQuestion(iQuestionIndex);
            }
            Next.IsEnabled = false;
            Option1.IsChecked = false;
            Option2.IsChecked = false;
            Option3.IsChecked = false;
            Option4.IsChecked = false;
            Option1.IsEnabled = true;
            Option2.IsEnabled = true;
            Option3.IsEnabled = true;
            Option4.IsEnabled = true;
            Option1.BorderBrush = new SolidColorBrush(Windows.UI.Colors.White);
            Option2.BorderBrush = new SolidColorBrush(Windows.UI.Colors.White);
            Option3.BorderBrush = new SolidColorBrush(Windows.UI.Colors.White);
            Option4.BorderBrush = new SolidColorBrush(Windows.UI.Colors.White);
            Option1.Background = new SolidColorBrush(Windows.UI.Colors.White);
            Option2.Background = new SolidColorBrush(Windows.UI.Colors.White);
            Option3.Background = new SolidColorBrush(Windows.UI.Colors.White);
            Option4.Background = new SolidColorBrush(Windows.UI.Colors.White);
        }