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

Next_Click() private method

Executed when the Next Button is tapped. It populates next flash card question to the 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 < flash.getCardList().Count - 1)
            {
                frontCard.Visibility = Visibility.Visible;
                backCard.Visibility = Visibility.Collapsed;
                isFlipped = false;
                iQuestionIndex++;
                populateQuestion(iQuestionIndex);
            }
            else if (iQuestionIndex == flash.getCardList().Count - 2) Next.Content = "Quit";
            else
            {
                Frame.GoBack();
            }
        }