Changeset 15707
- Timestamp:
- 02/01/18 16:10:07 (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore deleted
-
trunk/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs
r15706 r15707 106 106 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as ICheckedItemList<T>; 107 107 if (data != null) 108 validDragOperation = true;108 validDragOperation = Content.Select(x => x.ToString()).SequenceEqual(data.Select(x => x.ToString())); 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 < 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)); 128 for (int i = 0; i < Content.Count; i++) { 129 Content.SetItemCheckedState(Content[i], data.ItemChecked(data[i])); 133 130 } 134 131 } else
Note: See TracChangeset
for help on using the changeset viewer.