private void EndingSurvey() { aTimer.Stop(); aTimer = null; double result = MarkSurvey(); surveyController.SetMark(_survey.Id, _user.Id, result); ShowResult(result); isFinish = true; NextQuestion.Dispatcher.Invoke(DispatcherPriority.Background, new Action(() => { Foto.Source = null; Question.Content = string.Empty; Answers.Children.Clear(); NextQuestion.Content = LangPages.QuestionPage.KcFinish; })); }