Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15707


Ignore:
Timestamp:
02/01/18 16:10:07 (7 years ago)
Author:
mkommend
Message:

#2887: Reverse merged revision(s) 15706-15705 from trunk due to accidental inclusion of CheckedItemListView in commit.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore deleted
  • trunk/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs

    r15706 r15707  
    106106      var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as ICheckedItemList<T>;
    107107      if (data != null)
    108         validDragOperation = true;
     108        validDragOperation = Content.Select(x => x.ToString()).SequenceEqual(data.Select(x => x.ToString()));
    109109      else
    110110        base.itemsListView_DragEnter(sender, e);
     
    126126      var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as ICheckedItemList<T>;
    127127      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]));
    133130        }
    134131      } else
Note: See TracChangeset for help on using the changeset viewer.