- Timestamp:
- 03/12/14 15:53:38 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/HistogramLogic.cs
r10558 r10581 84 84 } 85 85 86 //TODO: refactor: possible code duplication with LineChartLogic 86 87 void PreprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e) { 87 var variableName = preprocessingData.GetVariableName(e.Column);88 88 switch (e.Type) { 89 89 case DataPreprocessingChangedEventType.DeleteColumn: 90 dataTable.Rows.Remove( variableName);90 dataTable.Rows.Remove(preprocessingData.GetVariableName(e.Column)); 91 91 break; 92 92 case DataPreprocessingChangedEventType.AddColumn: 93 dataTable.Rows.Add(new DataRow( variableName, String.Empty, preprocessingData.GetValues<double>(e.Column)));93 dataTable.Rows.Add(new DataRow(preprocessingData.GetVariableName(e.Column), String.Empty, preprocessingData.GetValues<double>(e.Column))); 94 94 break; 95 95 case DataPreprocessingChangedEventType.ChangeColumn: 96 96 case DataPreprocessingChangedEventType.ChangeItem: 97 dataTable.Rows.Remove( variableName);98 dataTable.Rows.Add(new DataRow( variableName, String.Empty, preprocessingData.GetValues<double>(e.Column)));97 dataTable.Rows.Remove(preprocessingData.GetVariableName(e.Column)); 98 dataTable.Rows.Add(new DataRow(preprocessingData.GetVariableName(e.Column), String.Empty, preprocessingData.GetValues<double>(e.Column))); 99 99 break; 100 100 case DataPreprocessingChangedEventType.DeleteRow: -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartLogic.cs
r10573 r10581 82 82 } 83 83 84 //TODO: refactor: possible code duplication with HistogramLogic 84 85 void PreprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e) { 85 var variableName = preprocessingData.GetVariableName(e.Column);86 86 switch (e.Type) { 87 87 case DataPreprocessingChangedEventType.DeleteColumn: 88 dataTable.Rows.Remove( variableName);88 dataTable.Rows.Remove(preprocessingData.GetVariableName(e.Column)); 89 89 break; 90 90 case DataPreprocessingChangedEventType.AddColumn: 91 dataTable.Rows.Add(new DataRow( variableName, String.Empty, preprocessingData.GetValues<double>(e.Column)));91 dataTable.Rows.Add(new DataRow(preprocessingData.GetVariableName(e.Column), String.Empty, preprocessingData.GetValues<double>(e.Column))); 92 92 break; 93 93 case DataPreprocessingChangedEventType.ChangeColumn: 94 94 case DataPreprocessingChangedEventType.ChangeItem: 95 dataTable.Rows.Remove( variableName);96 dataTable.Rows.Add(new DataRow( variableName, String.Empty, preprocessingData.GetValues<double>(e.Column)));95 dataTable.Rows.Remove(preprocessingData.GetVariableName(e.Column)); 96 dataTable.Rows.Add(new DataRow(preprocessingData.GetVariableName(e.Column), String.Empty, preprocessingData.GetValues<double>(e.Column))); 97 97 break; 98 98 case DataPreprocessingChangedEventType.DeleteRow: -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10580 r10581 278 278 279 279 public void BeginTransaction() { 280 SaveSnapshot(DataPreprocessingChangedEventType.Any, 0, 0); //TODO: fix event handling, so that the ints can be -1, -1280 SaveSnapshot(DataPreprocessingChangedEventType.Any, -1, -1); 281 281 transactionDepth++; 282 282 } … … 287 287 throw new InvalidOperationException("There is no open transaction that can be ended."); 288 288 if (transactionDepth == 0) 289 OnChanged(DataPreprocessingChangedEventType.Any, 0, 0); //TODO: fix event handling, so that the ints can be -1, -1289 OnChanged(DataPreprocessingChangedEventType.Any, -1, -1); 290 290 } 291 291
Note: See TracChangeset
for help on using the changeset viewer.