- Timestamp:
- 04/26/10 00:56:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r3455 r3526 153 153 Type type = e.Data.GetData("Type") as Type; 154 154 if (!ReadOnly && (type != null) && (Content.DataType.IsAssignableFrom(type))) { 155 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects. Copy; // CTRL key155 if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link; // CTRL key 156 156 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key 157 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;158 157 else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy; 159 158 else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move; 159 else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link; 160 160 } 161 161 }
Note: See TracChangeset
for help on using the changeset viewer.