Changeset 15706
- Timestamp:
- 02/01/18 16:07:19 (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
TestResults
-
Property
svn:ignore
set to
-
trunk/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs
r15583 r15706 106 106 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as ICheckedItemList<T>; 107 107 if (data != null) 108 validDragOperation = Content.Select(x => x.ToString()).SequenceEqual(data.Select(x => x.ToString()));108 validDragOperation = true; 109 109 else 110 110 base.itemsListView_DragEnter(sender, e); … … 126 126 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as ICheckedItemList<T>; 127 127 if (data != null) { 128 for (int i = 0; i < Content.Count; i++) { 129 Content.SetItemCheckedState(Content[i], data.ItemChecked(data[i])); 128 for (int i = 0; i < data.Count; i++) { 129 var dataItem = data[i]; 130 var contentItem = Content.FirstOrDefault(ci => ci.ToString() == dataItem.ToString()); 131 if (contentItem == null) continue; 132 Content.SetItemCheckedState(contentItem, data.ItemChecked(dataItem)); 130 133 } 131 134 } else
Note: See TracChangeset
for help on using the changeset viewer.