Changeset 10803 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/PreprocessingChartView.cs
- Timestamp:
- 05/07/14 10:44:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/PreprocessingChartView.cs
r10771 r10803 30 30 using HeuristicLab.Core.Views; 31 31 using HeuristicLab.Data; 32 using HeuristicLab.DataPreprocessing.Implementations; 32 33 using HeuristicLab.MainForm; 33 34 … … 39 40 40 41 private IChartLogic logic; 41 private DataTable dataTable;42 private List< DataTable> dataTablePerVariable;42 private PreprocessingDataTable dataTable; 43 private List<PreprocessingDataTable> dataTablePerVariable; 43 44 private ICheckedItemList<StringValue> variableItemList; 44 45 private List<DataRow> dataRows; … … 67 68 DataRow row = GetDataRow(variableName); 68 69 dataTable.Rows.Add(row); 69 DataTable d = newDataTable(variableName);70 PreprocessingDataTable d = new PreprocessingDataTable(variableName); 70 71 d.Rows.Add(row); 71 72 dataTablePerVariable.Add(d); … … 109 110 110 111 // init data table 111 dataTable = new DataTable(chartTitle);112 dataTable = new PreprocessingDataTable(chartTitle); 112 113 dataTable.Rows.AddRange(dataRows); 114 113 115 114 116 // init data table per variable 115 dataTablePerVariable = new List< DataTable>();117 dataTablePerVariable = new List<PreprocessingDataTable>(); 116 118 foreach(var checkedItem in variableItemList.CheckedItems) { 117 119 string variableName = variableItemList[checkedItem.Index].Value; 118 DataTable d = newDataTable(variableName);120 PreprocessingDataTable d = new PreprocessingDataTable(variableName); 119 121 DataRow row = GetDataRow(variableName); 122 //DataRow rowSelect = logic.CreateDataRowRange(variableName, 200, 400, chartType); 123 //rowSelect.Name = variableName + "(Selected)"; 124 //rowSelect.VisualProperties.Color = Color.Green; 125 120 126 d.Rows.Add(row); 127 //d.SelectedRows.Add(rowSelect); 128 121 129 dataTablePerVariable.Add(d); 122 } 123 130 131 } 124 132 } 125 133 … … 179 187 DataRow row = logic.CreateDataRow(name, chartType); 180 188 dataTable.Rows.Add(row); 181 DataTable d = newDataTable(name);189 PreprocessingDataTable d = new PreprocessingDataTable(name); 182 190 d.Rows.Add(row); 183 191 dataTablePerVariable.Add(d); … … 264 272 tableLayoutPanel.RowCount = rows; 265 273 266 List< DataTable>.Enumerator enumerator = dataTablePerVariable.GetEnumerator();274 List<PreprocessingDataTable>.Enumerator enumerator = dataTablePerVariable.GetEnumerator(); 267 275 for (int x = 0; x < columns; x++) { 268 276 … … 284 292 PreprocessingDataTableView dataView = new PreprocessingDataTableView(); 285 293 enumerator.MoveNext(); 286 DataTable d = enumerator.Current;294 PreprocessingDataTable d = enumerator.Current; 287 295 if (d == null) { 288 296 // dummy panel for empty field
Note: See TracChangeset
for help on using the changeset viewer.