Beispiel #1
0
        public EditQuestionVM(QuestionVM selectedQuestion)
        {
            this.Question       = selectedQuestion;
            AvailableCategories = new CategoryListVM();

            SaveCommand = new RelayCommand <EditQuestionWindow>(Save);
        }
Beispiel #2
0
        public AddQuestionVM(QuestionListVM questionList)
        {
            this._questionList  = questionList;
            AvailableCategories = new CategoryListVM();

            this.Question      = new QuestionVM();
            AddQuestionCommand = new RelayCommand(AddQuestion, CanAddQuestion);
        }
Beispiel #3
0
 public AddCategoryVM(CategoryListVM categoryList)
 {
     this._categoryList = categoryList;
     this.Category      = new CategoryVM();
     AddCategoryCommand = new RelayCommand(AddCategory, CanAddCategory);
 }