Exemplo n.º 1
0
    public void setAssessmentPanel(string s)
    {
        XmlNodeList ans = currentNode.ChildNodes[3].ChildNodes;

        a.setQuestion(currentNode.ChildNodes[2].InnerText);
        a.setAnsAVis(false);
        a.setAnsBVis(false);
        a.setAnsCVis(false);
        a.setAnsDVis(false);
        a.setAnsEVis(false);
        a.setAnsFVis(false);

        for (int i = 0; i < ans.Count; i++)
        {
            string tempAnswer = ans[i].ChildNodes[0].InnerText;
            string bo         = ans[i].ChildNodes[1].InnerText;
            bool   answerBool;

            if (bo.ToLower() == "true")
            {
                answerBool = true;
            }
            else if (bo.ToLower() == "false")
            {
                answerBool = false;
            }
            else
            {
                Debug.Log("some how not true or false.");
                answerBool = false;
            }
            setAnswer(i, tempAnswer, answerBool);
        }
    }