Beispiel #1
0
 public void ReadQuestionsResponses_v2()
 {
     if (_questions == null || _responses == null)
     {
         QuestionReader_v2 questionReader = CreateQuestionReader_v2();
         questionReader.ReadAll(GetScanFiles(), _baseDirectory);
         _questions = questionReader.Questions;
         _responses = questionReader.Responses;
     }
 }
Beispiel #2
0
 public QuestionReader_v2 CreateQuestionReader_v2()
 {
     if (_questionReader_v2 == null)
     {
         _questionReader_v2 = new QuestionReader_v2();
         _questionReader_v2.QuestionRegexValuesList = _questionRegexValuesList_v2;
         _questionReader_v2.ResponseRegexValuesList = _responseRegexValuesList_v2;
         _questionReader_v2.MaxLinesPerQuestion     = XmlConfig.CurrentConfig.GetExplicit("MaxLinesPerQuestion").zParseAs <int>();
         _questionReader_v2.MaxLinesPerChoice       = XmlConfig.CurrentConfig.GetExplicit("MaxLinesPerChoice").zParseAs <int>();
         _questionReader_v2.TraceUnknowValue        = _traceUnknowValue;
     }
     return(_questionReader_v2);
 }