Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/28/10 05:19:03 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • finished implemented ideas which came up during yesterday's presentation of HeuristicLab.Core and related plugins
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemParameterView.cs

    r2676 r2694  
    142142      if ((type != null) && (Parameter.DataType.IsAssignableFrom(type))) {
    143143        if ((e.KeyState & 8) == 8) e.Effect = DragDropEffects.Copy;  // CTRL key
    144         else if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Move;  // ALT key
    145         else e.Effect = DragDropEffects.Link;
     144        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
     145        else if ((e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) e.Effect = DragDropEffects.Link;
     146        else if ((e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) e.Effect = DragDropEffects.Copy;
     147        else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) e.Effect = DragDropEffects.Move;
    146148      }
    147149    }
Note: See TracChangeset for help on using the changeset viewer.