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); }
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); } }
private static void StoreCompiledTestControl(WebControl.WebControlBase c, int pageRef, XmlNode questionAnswerNode) { StoreCompiledQuestion(((WebTestControlBase) c).Id, pageRef, c.Name, CompiledQuestionManager.Import(questionAnswerNode), GetRank(questionAnswerNode)); }