Free cookie consent management tool by TermsFeed Policy Generator

Changeset 728 for trunk/sources


Ignore:
Timestamp:
11/09/08 22:26:42 (16 years ago)
Author:
cbahner
Message:

#320 first persistence mechanism (values) bugfix

File:
1 edited

Legend:

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

    r727 r728  
    2626    public void AddDataRow(int id){
    2727
    28       double[] vals = new double[10]{4.0, 2.2, 0.2, 4, 18.2333, 1.1, 7, 99.99, 8, 2.6};
     28      double[] vals = new double[0];
    2929
    3030      ChartDataRowsModelColumn col = new ChartDataRowsModelColumn(id, vals);
     
    3535    public void PushData(int dataRowId, double value){
    3636
    37       //double[] vals = new double[columns[dataRowId].Values.Length+1];
    38       //for (int i = 0; i < columns[dataRowId].Values.Length; i++ ){
    39       //  vals[i] = columns[dataRowId].Values[i];
     37      double[] vals = new double[columns[dataRowId].Values.Length + 1];
     38      for (int i = 0; i < columns[dataRowId].Values.Length; i++) {
     39        vals[i] = columns[dataRowId].Values[i];
    4040
    41       //}
    42        
    43       //vals[vals.Length] = value;
    44       //columns[dataRowId].Values = vals;
     41      }
     42
     43      vals[vals.Length-1] = value;
     44      columns[dataRowId].Values = vals;
    4545    }
    4646
Note: See TracChangeset for help on using the changeset viewer.