Changeset 6527 for trunk/sources
- Timestamp:
- 07/07/11 09:00:45 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 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.Core.Views/3.3/Clipboard.cs
r5839 r6527 27 27 using System.Threading; 28 28 using System.Windows.Forms; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.MainForm; 30 31 using HeuristicLab.Persistence.Default.Xml; … … 321 322 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 322 323 IEnumerable<T> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<T>(); 324 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 325 Cloner cloner = new Cloner(); 326 items = items.Select(x => cloner.Clone(x)); 327 } 323 328 foreach (T item in items) 324 AddItem( e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);329 AddItem(item); 325 330 } 326 331 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r6472 r6527 297 297 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 298 298 Cloner cloner = new Cloner(); 299 items = items.Select( i => (T)i.Clone(cloner));299 items = items.Select(x => cloner.Clone(x)); 300 300 } 301 301 foreach (T item in items) -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r6472 r6527 337 337 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 338 338 Cloner cloner = new Cloner(); 339 items = items.Select( i => (T)i.Clone(cloner));339 items = items.Select(x => cloner.Clone(x)); 340 340 } 341 341 foreach (T item in items) { -
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.