Example #1
0
 public testresult ResultsToBase(RecogCore.AnswerGrid.Answers Answers)
 {
     throw new Exception("Для этого теста не существует бланка");
 }
Example #2
0
        public testresult ResultsToBase(RecogCore.AnswerGrid.Answers Answers)
        {
            DAnswers _answersforbase = new DAnswers(_ge);

            for (int i = 0, count = Answers.Count; i < count; i++)
            {
                _answersforbase.Add(Answers[i].SelectedCellIndex(), Answers[i].ContentDescription, "", Answers[i].Id, "");
            }
            XmlSerializer mySerializer = new XmlSerializer(typeof(DAnswers));

            StringWriter myWriter = new StringWriter();
            mySerializer.Serialize(myWriter, _answersforbase);

            testresult t = testresult.Createtestresult(0, _humanid, DateTime.Now, (int)EnumPTests.Adaptability, myWriter.ToString(), "manual");
            _fe.testresults.AddObject(t);
            _fe.SaveChanges();

            myWriter.Close();
            return t;
        }