Exemplo n.º 1
0
        public QuestionViewViewModel(ViewModelRequirements requirements, Guid questionId, bool isNew, SlideQuestionModel questionBeforeEdit = null)
            : base(requirements)
        {
            this.questionId = questionId;
            this.isNew      = isNew;

            this.questionBeforeEdit = questionBeforeEdit ?? CopyHelper.CopySlideQuestionModel(this.SlideQuestionModel);

            this.InitializeWindowCommandBindings();

            this.QuestionTypes = this.SlideSessionModel.SessionType == SessionType.ArsnovaClick
                ? this.SessionInformationProvider.GetAvailableQuestionsClick()
                : this.SessionInformationProvider.GetAvailableQuestionsVoting();

            this.ExcelChartTypes = this.SessionInformationProvider.GetExcelChartTypes();
        }