Free cookie consent management tool by TermsFeed Policy Generator

Changeset 736 for trunk/sources


Ignore:
Timestamp:
11/11/08 20:18:37 (16 years ago)
Author:
cbahner
Message:

#320 first persistence mechanism (load values) (bugfix if no values in a row)

File:
1 edited

Legend:

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

    r731 r736  
    108108        double[] data = new double[tokens.Length];
    109109        for (int i = 0; i < data.Length; i++){
    110           test.Data = i;
    111           data[i] = 2.3;
    112           //if(double.TryParse(tokens[i], NumberStyles.Float, CultureInfo.InvariantCulture.NumberFormat, out data[i]) == false) {
    113           //  throw new FormatException("Can't parse " + tokens[i] + " as double value.");
    114           //}
    115 
     110          if (tokens[i].Length != 0){
     111            if (
     112              double.TryParse(tokens[i], NumberStyles.Float, CultureInfo.InvariantCulture.NumberFormat, out data[i]) ==
     113              false){
     114              throw new FormatException("Can't parse " + tokens[i] + " as double value.");
     115            }
     116          }
    116117        }
    117118        Columns[rowId-1].Values = data;
    118119      }
    119120    }
    120    
    121121  }
    122122}
Note: See TracChangeset for help on using the changeset viewer.