- Timestamp:
- 06/22/11 17:25:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r5839 r6472 26 26 using System.Windows.Forms; 27 27 using HeuristicLab.Collections; 28 using HeuristicLab.Common; 28 29 using HeuristicLab.MainForm; 29 30 using HeuristicLab.MainForm.WindowsForms; … … 294 295 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 295 296 IEnumerable<T> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<T>(); 297 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 298 Cloner cloner = new Cloner(); 299 items = items.Select(i => (T)i.Clone(cloner)); 300 } 296 301 foreach (T item in items) 297 Content.Add( e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);302 Content.Add(item); 298 303 } 299 304 }
Note: See TracChangeset
for help on using the changeset viewer.