private ValidationReport ValidateQuestionForm(QuestionForm form)
 {
     try
     {
         var runtimeController = new QL.Runtime.RuntimeController();
         return(runtimeController.Validate(form));
     }
     catch (Exception ex)
     {
         throw new ApplicationException("An unexpected error occured during the validation of the questionnaire AST.", ex);
     }
 }
        private void Interpretet()
        {
            var runtimeController = new QL.Runtime.RuntimeController();
            var answers = CollectAnswers();

            try
            {
                var results = runtimeController.Interpretet(_questionForm, answers);

                SetResults(results);
            }
            catch (Exception ex)
            {
                _outputWindow.WriteLine("ERROR - {0}", ex.ToString());
                MessageBox.Show("Exception occured.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #3
0
        private void Interpretet()
        {
            var runtimeController = new QL.Runtime.RuntimeController();
            var answers           = CollectAnswers();

            try
            {
                var results = runtimeController.Interpretet(_questionForm, answers);

                SetResults(results);
            }
            catch (Exception ex)
            {
                _outputWindow.WriteLine("ERROR - {0}", ex.ToString());
                MessageBox.Show("Exception occured.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #4
0
 private ValidationReport ValidateQuestionForm(QuestionForm form)
 {
     try
     {
         var runtimeController = new QL.Runtime.RuntimeController();
         return runtimeController.Validate(form);
     }
     catch (Exception ex)
     {
         throw new ApplicationException("An unexpected error occured during the validation of the questionnaire AST.", ex);
     }
 }