Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/26/10 00:56:59 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r3500 r3526  
    236236      Type type = e.Data.GetData("Type") as Type;
    237237      if ((type != null) && (Content.ProblemType.IsAssignableFrom(type))) {
    238         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Copy;  // CTRL key
     238        if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
    239239        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    240         else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
    241240        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
    242241        else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move;
     242        else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
    243243      }
    244244    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs

    r3500 r3526  
    223223      Type type = e.Data.GetData("Type") as Type;
    224224      if ((type != null) && (typeof(IAlgorithm).IsAssignableFrom(type))) {
    225         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Copy;  // CTRL key
     225        if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
    226226        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    227         else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
    228227        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
    229228        else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move;
     229        else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
    230230      }
    231231    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs

    r3507 r3526  
    223223      Type type = e.Data.GetData("Type") as Type;
    224224      if (!Content.IsReadOnly && !ReadOnly && (type != null) && (typeof(IRun).IsAssignableFrom(type))) {
    225         if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Copy;  // CTRL key
     225        if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Link;  // CTRL key
    226226        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
    227         else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
    228227        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
    229228        else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move;
     229        else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
    230230      }
    231231    }
Note: See TracChangeset for help on using the changeset viewer.