Changeset 1993 for trunk/sources/HeuristicLab.Visualization/3.2/LabelProvider/StringLabelProvider.cs
- Timestamp:
- 06/03/09 01:42:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/3.2/LabelProvider/StringLabelProvider.cs
r1385 r1993 1 1 using System; 2 2 using System.Collections.Generic; 3 using HeuristicLab.Visualization.LabelProvider;4 3 using System.Xml; 5 4 … … 28 27 } 29 28 30 public XmlNode GetLabelProviderXmlNode() { 31 XmlDocument Xdoc = new XmlDocument(); 32 33 XmlNode lblProvInfo = Xdoc.CreateNode(XmlNodeType.Element, "LabelProvider", null); 29 public XmlNode GetLabelProviderXmlNode(XmlDocument document) { 30 XmlNode lblProvInfo = document.CreateNode(XmlNodeType.Element, "LabelProvider", null); 34 31 lblProvInfo.InnerText = "StringLabelProvider"; 35 32 36 33 foreach (KeyValuePair<int, string> pair in labels) 37 34 { 38 XmlNode strLbl = Xdoc.CreateNode(XmlNodeType.Element, "String", null);35 XmlNode strLbl = document.CreateNode(XmlNodeType.Element, "String", null); 39 36 40 XmlAttribute idStrLbl = Xdoc.CreateAttribute("id");37 XmlAttribute idStrLbl = document.CreateAttribute("id"); 41 38 idStrLbl.Value = pair.Key.ToString(); 42 39 strLbl.Attributes.Append(idStrLbl);
Note: See TracChangeset
for help on using the changeset viewer.