예제 #1
0
        public QuestionGroupViewModel(QuestionGroup questionGroup)
        {
            _model = questionGroup;
            LoadQuestionCommand = new LoadQuestionCommand(this, _model.Id);

            MessengerInstance.Register<CancelQuestionMessage>(this, OnCancelQuestion);
        }
        public QuestionGroupViewModel(QuestionGroup questionGroup)
        {
            _model = questionGroup;
            LoadQuestionCommand = new LoadQuestionCommand(this, _model.Id);

            MessengerInstance.Register<CancelQuestionMessage>(this, OnCancelQuestion);
            MessengerInstance.Register<UnloadQuestionMessage>(this, msg =>
            {
                IsFinished =
                    _questions.All(rec => rec.IsAnswered);
            });
        }
예제 #3
0
        public QuestionGroupViewModel(QuestionGroup questionGroup)
        {
            _model = questionGroup;
            LoadQuestionCommand = new LoadQuestionCommand(this, _model.Id);

            MessengerInstance.Register <CancelQuestionMessage>(this, OnCancelQuestion);
            MessengerInstance.Register <UnloadQuestionMessage>(this, msg =>
            {
                IsFinished =
                    _questions.All(rec => rec.IsAnswered);
            });
        }