Changeset 8676
- Timestamp:
- 09/21/12 10:19:59 (12 years ago)
- Location:
- branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeColumnGroup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeColumnGroup/AddNewColumnCommandBase.cs
r7732 r8676 66 66 newColumn.Resize(ColumnGroup.RowCount); 67 67 68 ColumnBase cb = ColumnGroup.Columns. Where(x => x.Selected).FirstOrDefault();68 ColumnBase cb = ColumnGroup.Columns.FirstOrDefault(x => x.Selected); 69 69 if (cb != null) { 70 70 ColumnGroup.InsertColumn(ColumnGroup.IndexOfColumn(cb) + 1, NewColumn); -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeColumnGroup/AddNewProgrammableColumnCommand.cs
r7267 r8676 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 22 using System.Linq; 25 using System.Text;26 using System.Xml;23 using HeuristicLab.DataImporter.Command.View; 24 using HeuristicLab.DataImporter.Data; 27 25 using HeuristicLab.DataImporter.Data.CommandBase; 28 26 using HeuristicLab.DataImporter.Data.Model; 29 using HeuristicLab.DataImporter.Data;30 using HeuristicLab.DataImporter.Command.View;31 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 28 … … 70 66 } 71 67 72 ColumnGroup.AddColumn(NewColumn); 68 ColumnBase cb = ColumnGroup.Columns.FirstOrDefault(x => x.Selected); 69 if (cb != null) { 70 ColumnGroup.InsertColumn(ColumnGroup.IndexOfColumn(cb) + 1, NewColumn); 71 } else { 72 ColumnGroup.AddColumn(NewColumn); 73 } 73 74 ColumnGroup.FireChanged(); 74 75 ColumnGroup = null;
Note: See TracChangeset
for help on using the changeset viewer.