- Timestamp:
- 03/28/11 14:53:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r5809 r5837 278 278 protected virtual void problemTabPage_DragEnterOver(object sender, DragEventArgs e) { 279 279 e.Effect = DragDropEffects.None; 280 if (!ReadOnly && (e.Data.GetData( "HeuristicLab") != null) && Content.ProblemType.IsAssignableFrom(e.Data.GetData("HeuristicLab").GetType())) {280 if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) != null) && Content.ProblemType.IsAssignableFrom(e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat).GetType())) { 281 281 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 282 282 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key … … 288 288 protected virtual void problemTabPage_DragDrop(object sender, DragEventArgs e) { 289 289 if (e.Effect != DragDropEffects.None) { 290 IProblem problem = e.Data.GetData( "HeuristicLab") as IProblem;290 IProblem problem = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IProblem; 291 291 if (e.Effect.HasFlag(DragDropEffects.Copy)) problem = (IProblem)problem.Clone(); 292 292 Content.Problem = problem;
Note: See TracChangeset
for help on using the changeset viewer.