Beispiel #1
0
 public void LoadFromXmlNode(XmlNode rootNode)
 {
     foreach (XmlNode node in rootNode.ChildNodes)
     {
         SimpleTextLeaf item = new SimpleTextLeaf {
             Text = node.Attributes.GetNamedItem("Text").Value
         };
         item.TextColor.PackedValue = uint.Parse(node.Attributes.GetNamedItem("Color").Value);
         this.Leaves.Add(item);
     }
 }
 internal void LoadFromXmlNode(XmlNode rootNode)
 {
     foreach (XmlNode node in rootNode.ChildNodes)
     {
         SimpleTextLeaf item = new SimpleTextLeaf {
             Text = node.Attributes.GetNamedItem("Text").Value
         };
         item.TextColor.PackedValue = uint.Parse(node.Attributes.GetNamedItem("Color").Value);
         this.Leaves.Add(item);
     }
 }