- Timestamp:
- 04/26/10 00:56:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3483 r3526 217 217 Type type = e.Data.GetData("Type") as Type; 218 218 if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(T).IsAssignableFrom(type))) { 219 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key219 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 220 220 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 221 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;222 221 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 223 222 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 223 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 224 224 } 225 225 }
Note: See TracChangeset
for help on using the changeset viewer.