Changeset 6527 for trunk/sources/HeuristicLab.Optimization.Views
- Timestamp:
- 07/07/11 09:00:45 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r5839 r6527 27 27 using System.Windows.Forms; 28 28 using HeuristicLab.Collections; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Core; 30 31 using HeuristicLab.Core.Views; … … 314 315 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 315 316 IEnumerable<IRun> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<IRun>(); 317 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 318 Cloner cloner = new Cloner(); 319 items = items.Select(x => cloner.Clone(x)); 320 } 316 321 foreach (IRun item in items) 317 Content.Add( e.Effect.HasFlag(DragDropEffects.Copy) ? (IRun)item.Clone() :item);322 Content.Add(item); 318 323 } 319 324 }
Note: See TracChangeset
for help on using the changeset viewer.