public EditQuestionVM(QuestionVM selectedQuestion) { this.Question = selectedQuestion; AvailableCategories = new CategoryListVM(); SaveCommand = new RelayCommand <EditQuestionWindow>(Save); }
public AddQuestionVM(QuestionListVM questionList) { this._questionList = questionList; AvailableCategories = new CategoryListVM(); this.Question = new QuestionVM(); AddQuestionCommand = new RelayCommand(AddQuestion, CanAddQuestion); }
public AddCategoryVM(CategoryListVM categoryList) { this._categoryList = categoryList; this.Category = new CategoryVM(); AddCategoryCommand = new RelayCommand(AddCategory, CanAddCategory); }