Example #1
0
        public EKvizWindowViewModel()
        {
            _answer = new Answer();
            _course = new Course();
            _question = new Question();
            _quiz = new Quiz();
            _modifiedQuiz = new Quiz();

            _answers = new ObservableCollection<Answer>();
            _quizes = new ObservableCollection<Quiz>();
            _questions = new ObservableCollection<Question>();
            _courses = new ObservableCollection<Course>();

            _isSingleChoice = true;
            _isMultipleChoice = false;
        }
Example #2
0
        void ButtonOpenCreateQuestionWindowExecute()
        {
            Dialogs.NewQuestionWindow newQuestionWindow = new Dialogs.NewQuestionWindow();

            Question = new Question();
            Answers = new ObservableCollection<Answer>();

            newQuestionWindow.DataContext = this;
            newQuestionWindow.ShowDialog();
        }