Exemple #1
0
        public override void EnterQuestion(QL.QuestionContext context)
        {
            string questionLabel = context.result.Label;

            // Should be warnings, move to separate list
            if (QuestionLabelExists(questionLabel))
            {
                //AddError(context, "The question label '" + questionLabel + "' has already been used.");
            }
        }
Exemple #2
0
        public override void ExitQuestion(QL.QuestionContext context)
        {
            string questionId = context.result.Id;

            if (QuestionIdExists(questionId))
            {
                AddError(context, "The question id '" + questionId + "' already exists in the current context.");
            }
            else
            {
                _questions.Add(context.result.Id, context.result);
            }
        }