Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1061


Ignore:
Timestamp:
12/25/08 11:14:00 (16 years ago)
Author:
cbahner
Message:

#320 optimization of persistence (save) + tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs

    r979 r1061  
    44using System.Xml;
    55using HeuristicLab.Core;
     6using System.Text;
    67
    78namespace HeuristicLab.Visualization{
     
    140141        columnElement.Attributes.Append(idAttr);
    141142
     143        StringBuilder builder = new StringBuilder();
     144
    142145        for (int i = 0; i < row.Count; i++) {
    143146          if (i == 0) {
    144             columnElement.InnerText += row[i].ToString(CultureInfo.InvariantCulture.NumberFormat);
     147            builder.Append(row[i].ToString(CultureInfo.InvariantCulture.NumberFormat));
     148            //columnElement.InnerText += row[i].ToString(CultureInfo.InvariantCulture.NumberFormat);
    145149          } else {
    146             columnElement.InnerText += ";" + row[i].ToString(CultureInfo.InvariantCulture.NumberFormat);
     150            builder.Append(";" + row[i].ToString(CultureInfo.InvariantCulture.NumberFormat));
     151            //columnElement.InnerText += ";" + row[i].ToString(CultureInfo.InvariantCulture.NumberFormat);
    147152          }
    148153        }
     154        columnElement.InnerText += builder.ToString();
    149155        node.AppendChild(columnElement);
    150156      }
Note: See TracChangeset for help on using the changeset viewer.