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); }); }
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); }); }