protected void Initialize(XmlCard card)
 {
     m_card = card.Xml;
     m_Distractors.Clear();
     if (m_card[m_XPathBasePath] != null)
     {
         foreach (XmlNode distractor in m_card[m_XPathBasePath].SelectNodes(m_XPathDistractor))
         {
             XmlDistractor xmlDistractor = new XmlDistractor(distractor as XmlElement, this.Parent.GetChildParentClass(this));
             IWord         word          = new XmlWord(xmlDistractor.Word, xmlDistractor.Type, false, Parent.GetChildParentClass(this));
             AssignWordPropertyChanged(word);
             m_Distractors.Add(word);
         }
     }
 }
示例#2
0
 protected void Initialize(XmlCard card)
 {
     m_card = card.Xml;
     m_Distractors.Clear();
     if (m_card[m_XPathBasePath] != null)
     {
         foreach (XmlNode distractor in m_card[m_XPathBasePath].SelectNodes(m_XPathDistractor))
         {
             XmlDistractor xmlDistractor = new XmlDistractor(distractor as XmlElement, this.Parent.GetChildParentClass(this));
             IWord word = new XmlWord(xmlDistractor.Word, xmlDistractor.Type, false, Parent.GetChildParentClass(this));
             AssignWordPropertyChanged(word);
             m_Distractors.Add(word);
         }
     }
 }