Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/28/11 14:53:01 (13 years ago)
Author:
swagner
Message:

Implemented review comments of mkommend (#1112)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs

    r5744 r5837  
    162162    protected virtual void valueGroupBox_DragEnterOver(object sender, DragEventArgs e) {
    163163      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())) {
    165165        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    166166        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
     
    172172    protected virtual void valueGroupBox_DragDrop(object sender, DragEventArgs e) {
    173173      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;
    175175        if (e.Effect.HasFlag(DragDropEffects.Copy)) value = (T)value.Clone();
    176176        Content.Value = value;
Note: See TracChangeset for help on using the changeset viewer.