コード例 #1
0
ファイル: EditQuestionVM.cs プロジェクト: ThijsReba/KwisSpel
        public EditQuestionVM(QuestionVM selectedQuestion)
        {
            this.Question       = selectedQuestion;
            AvailableCategories = new CategoryListVM();

            SaveCommand = new RelayCommand <EditQuestionWindow>(Save);
        }
コード例 #2
0
ファイル: AddQuestionVM.cs プロジェクト: ThijsReba/KwisSpel
        public AddQuestionVM(QuestionListVM questionList)
        {
            this._questionList  = questionList;
            AvailableCategories = new CategoryListVM();

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