Exemplo n.º 1
0
 private static void StoreTestControl(WebControl.WebControlBase c, int pageRef, XmlNode questionAnswerNode, string pathToTempCourseFolder)
 {
     StoreQuestion(((WebTestControlBase) c).Id, pageRef, c.Name,
                   GetAnswer(questionAnswerNode), GetRank(questionAnswerNode));
     if (c is WebCodeSnippet)
         FilesManager.StoreAllPageFiles(pageRef, Path.Combine(pathToTempCourseFolder, c.Name) + FileExtentions.WordHtmlFolder);
 }
Exemplo n.º 2
0
        private static void StoreTest(WebControl.WebControlBase c, XmlNode answerNode, int pageRef, string pathToTempCourseFolder)
        {
            XmlNode questionAnswerNode = GetTestAnswerNode(answerNode, ((WebTestControlBase) c).AnswerIndex);

            if(c is WebCompiledTest)
            {
                StoreCompiledTestControl(c, pageRef, questionAnswerNode);
            }
            else
            {
                StoreTestControl(c, pageRef, questionAnswerNode, pathToTempCourseFolder);
            }
        }
Exemplo n.º 3
0
 private static void StoreCompiledTestControl(WebControl.WebControlBase c, int pageRef, XmlNode questionAnswerNode)
 {
     StoreCompiledQuestion(((WebTestControlBase) c).Id, pageRef, c.Name,
                           CompiledQuestionManager.Import(questionAnswerNode), GetRank(questionAnswerNode));
 }