Пример #1
0
        public CreateQuizViewModel()
        {
            Quiz = new Quiz();
            Questions = new ObservableCollection<Question>();
            _questionRepository = new QuestionRepository();

        }
 public CreateQuestionViewModel()
 {
     Question = new Question();
     Questions = new ObservableCollection<Question>();
     _questionRepository = new QuestionRepository();
     Questions = _questionRepository.GetQuestions();
    
     Question.PropertyChanged += OnQuestion_PropertyChanged;
     Questions.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(Questions_CollectionChanged);
 }