Changeset 3526 for trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs
- Timestamp:
- 04/26/10 00:56:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs
r3416 r3526 257 257 T item = e.Data.GetData("Value") as T; 258 258 if (!ReadOnly && (type != null) && (item != null)) { 259 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key259 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 260 260 else if (((e.KeyState & 4) == 4) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move; // SHIFT key 261 else if (((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Link;262 261 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 263 262 else if (((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Move; 263 else if (((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) && !itemListViewItemTable.ContainsKey(item)) e.Effect = DragDropEffects.Link; 264 264 } 265 265 }
Note: See TracChangeset
for help on using the changeset viewer.