Changeset 7625 for branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/AlignColumnGroupsCommand.cs
- Timestamp:
- 03/15/12 17:51:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/AlignColumnGroupsCommand.cs
r7267 r7625 56 56 this.removePos2 = this.DataSet.IndexOfColumnGroup(oldColumnGroup2); 57 57 58 if (!oldColumnGroup1.Columns.Any() || !oldColumnGroup2.Columns.Any()) return; 59 58 60 if (oldColumnGroup1.SortedColumnsCount < 1 || oldColumnGroup1.SortedColumnsCount != oldColumnGroup2.SortedColumnsCount) 59 61 throw new CommandExecutionException("Both ColumnGroups must be sorted by at least one column and must be sorted by the same number of columns.", this); … … 64 66 if (this.oldColumnGroup1.Columns.ElementAt(oldColumnGroup1.SortedColumnIndexes.ElementAt(i)).DataType != 65 67 this.oldColumnGroup2.Columns.ElementAt(oldColumnGroup2.SortedColumnIndexes.ElementAt(i)).DataType) 66 throw new CommandExecutionException("Both ColumnGroups must be sorted by columns of the same type", this);68 throw new CommandExecutionException("Both ColumnGroups must be sorted by columns of the same type", this); 67 69 } 68 70
Note: See TracChangeset
for help on using the changeset viewer.