Changeset 5877 for trunk/sources
- Timestamp:
- 03/30/11 01:39:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataTableValuesCollector.cs
r5445 r5877 39 39 get { return (ValueLookupParameter<DataTable>)Parameters["DataTable"]; } 40 40 } 41 private IFixedValueParameter<BoolValue> StartIndexZeroParameter { 42 get { return (FixedValueParameter<BoolValue>)Parameters["StartIndexZero"]; } 43 } 44 45 public bool StartIndexZero { 46 get { return StartIndexZeroParameter.Value.Value; } 47 set { StartIndexZeroParameter.Value.Value = value; } 48 } 41 49 42 50 #region Storing & Cloning … … 51 59 : base() { 52 60 Parameters.Add(new ValueLookupParameter<DataTable>("DataTable", "The table of data values where the collected values should be stored.")); 61 Parameters.Add(new FixedValueParameter<BoolValue>("StartIndexZero", "True, if the collected data values should start with index 0, otherwise false.", new BoolValue(true), false)); 62 StartIndexZeroParameter.Hidden = true; 63 } 64 65 [StorableHook(HookType.AfterDeserialization)] 66 private void AfterDeserialization() { 67 // BackwardsCompatibility3.3 68 #region Backwards compatible code (remove with 3.4) 69 if (!Parameters.ContainsKey("StartIndexZero")) { 70 Parameters.Add(new FixedValueParameter<BoolValue>("StartIndexZero", "True, if the collected data values should start with index 0, otherwise false.", new BoolValue(true), false)); 71 StartIndexZeroParameter.Hidden = true; 72 } 73 #endregion 53 74 } 54 75 … … 104 125 if (row == null) { 105 126 row = new DataRow(name, description); 127 row.VisualProperties.StartIndexZero = StartIndexZero; 106 128 row.Values.Add(data); 107 129 table.Rows.Add(row);
Note: See TracChangeset
for help on using the changeset viewer.