private async void ContinueGame_Click(object sender, RoutedEventArgs e) { if (!processing) { processing = true; if (CurrentQuestionSheet.ShowingMode == QuestionPageShowingMode.ShowinQuestion) { App.CurrentApp.CurrentRecord.Score += CurrentQuestionSheet.Evaluate().Score; ScoreBlock.Text = App.CurrentApp.CurrentRecord.Score.ToString() + " امتیاز"; KasrTextblock.Visibility = Visibility.Collapsed; await CurrentQuestionSheet.ShowAnswer(); } else { if (Questions.Count > 0) { QuestionFrame.Navigate(Questions.Dequeue()); } else { App.MainMenu.PageFrame.Navigate(new Finsihed(storeData: true)); } } await Task.Delay(200); processing = false; } }
private void QLoader_Loaded(object sender, RoutedEventArgs e) { QuestionFrame.Navigate(Questions.Dequeue()); ScoreBlock.Text = "۰ امتیاز"; }