Changeset 15087 for trunk/sources/HeuristicLab.Core.Views/3.3
- Timestamp:
- 06/29/17 11:47:10 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs
r15086 r15087 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.