/*Checking if the answer picked in the listview is the correct one. If so, alter score accordingly, increment which card we are using * and either setup the new answers or nav to the popup*/ private void Picked(object obj) { var AnswerCard = obj as AnswerCard; if (AnswerCard.Correct) { CardDatabase.RightAnswer(AnswerCard.Card); } else { CardDatabase.WrongAnswer(AnswerCard.Card); } index++; if (Position < HandSize - 1) { Position++; Setup(); } else { Nav(Deck, 2); } }
public void Right(object obj) { var cardLabel = obj as CardLabel; foreach (Card card in Cards) { if (card.ID == cardLabel.ID) { CardDatabase.RightAnswer(card); break; } } if (Position < Settings.HandSize - 1) { Position++; } else { NavToPopUpAsync(); } }