- Timestamp:
- 11/29/08 12:28:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs
r859 r864 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Globalization; 3 4 using System.Xml; 4 5 using HeuristicLab.Core; … … 129 130 } 130 131 131 132 133 132 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) { 134 133 throw new NotImplementedException(); 135 136 // XmlNode node = base.GetXmlNode(name, document, persistedObjects); 137 // 138 // foreach (ChartDataRowsModelColumn column in Columns){ 139 // XmlNode columnElement = document.CreateNode(XmlNodeType.Element, "column", null); 140 // 141 // XmlAttribute idAttr = document.CreateAttribute("id"); 142 // idAttr.Value = (column.ColumnId).ToString(); 143 // columnElement.Attributes.Append(idAttr); 144 // 145 // for (int i = 0; i < column.Values.Length; i++){ 146 // if (i == 0){ 147 // columnElement.InnerText += column.Values[i].ToString(CultureInfo.InvariantCulture.NumberFormat); 148 // } else{ 149 // columnElement.InnerText += ";" + column.Values[i].ToString(CultureInfo.InvariantCulture.NumberFormat); 150 // } 151 // } 152 // node.AppendChild(columnElement); 153 // } 154 // 155 // return node; 134 156 135 } 157 136 158 159 160 137 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) { 161 138 throw new NotImplementedException(); 162 139 163 // base.Populate(node, restoredObjects);164 //165 // foreach (XmlNode column in node.ChildNodes){166 // XmlAttributeCollection attrs = column.Attributes;167 // XmlAttribute rowIdAttr = (XmlAttribute)attrs.GetNamedItem("id");168 // int rowId = int.Parse(rowIdAttr.Value);169 // AddDataRow(rowId);170 // string[] tokens = column.InnerText.Split(';');171 // double[] data = new double[tokens.Length];172 // for (int i = 0; i < data.Length; i++){173 // if (tokens[i].Length != 0){174 // if (175 // double.TryParse(tokens[i], NumberStyles.Float, CultureInfo.InvariantCulture.NumberFormat, out data[i]) ==176 // false){177 // throw new FormatException("Can't parse " + tokens[i] + " as double value.");178 // }179 // }180 // }181 // Columns[rowId-1].Values = data;182 // }183 140 } 184 141 }
Note: See TracChangeset
for help on using the changeset viewer.