- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r5839 r6760 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; … … 42 43 get { return (IItemCollection<T>)base.Content; } 43 44 set { base.Content = value; } 45 } 46 47 public bool ShowDetails { 48 get { return showDetailsCheckBox.Checked; } 49 set { showDetailsCheckBox.Checked = value; } 44 50 } 45 51 … … 294 300 } else if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IEnumerable) { 295 301 IEnumerable<T> items = ((IEnumerable)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat)).Cast<T>(); 302 if (e.Effect.HasFlag(DragDropEffects.Copy)) { 303 Cloner cloner = new Cloner(); 304 items = items.Select(x => cloner.Clone(x)); 305 } 296 306 foreach (T item in items) 297 Content.Add( e.Effect.HasFlag(DragDropEffects.Copy) ? (T)item.Clone() :item);307 Content.Add(item); 298 308 } 299 309 }
Note: See TracChangeset
for help on using the changeset viewer.