Ejemplo n.º 1
0
        public EditQuestionVM(QuestionVM selectedQuestion)
        {
            this.Question       = selectedQuestion;
            AvailableCategories = new CategoryListVM();

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

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