- Timestamp:
- 03/28/11 14:53:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r5744 r5837 162 162 protected virtual void valueGroupBox_DragEnterOver(object sender, DragEventArgs e) { 163 163 e.Effect = DragDropEffects.None; 164 if (!ReadOnly && (e.Data.GetData( "HeuristicLab") != null) && Content.DataType.IsAssignableFrom(e.Data.GetData("HeuristicLab").GetType())) {164 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) != null) && Content.DataType.IsAssignableFrom(e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat).GetType())) { 165 165 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 166 166 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key … … 172 172 protected virtual void valueGroupBox_DragDrop(object sender, DragEventArgs e) { 173 173 if (e.Effect != DragDropEffects.None) { 174 T value = e.Data.GetData( "HeuristicLab") as T;174 T value = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as T; 175 175 if (e.Effect.HasFlag(DragDropEffects.Copy)) value = (T)value.Clone(); 176 176 Content.Value = value;
Note: See TracChangeset
for help on using the changeset viewer.