Exemplo n.º 1
0
        private void SetDataContext()
        {
            var question = DataModelHelper.GetNextQuestion();

            if (DataModelHelper.HasMultipleChoices)
            {
                DataContext = new MultipleChoicesViewModel(question);
            }
            else
            {
                DataContext = new SingleChoiceViewModel(question);
            }
        }