Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/11/11 17:54:42 (13 years ago)
Author:
mkommend
Message:

#1618: Enabled problem data changes in DataAnalysisSolutions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r6652 r6653  
    3737      InitializeComponent();
    3838      viewHost.ViewsLabelVisible = false;
    39       base.ReadOnly = true;
    4039    }
    4140
     
    118117        itemsListView.Items.Remove(item);
    119118    }
     119
     120    #region drag and drop
     121    protected override void itemsListView_DragEnter(object sender, DragEventArgs e) {
     122      validDragOperation = false;
     123      if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData)) {
     124        validDragOperation = true;
     125      }
     126    }
     127
     128    protected override void itemsListView_DragDrop(object sender, DragEventArgs e) {
     129      if (e.Effect != DragDropEffects.None) {
     130        if (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is DataAnalysisProblemData) {
     131          DataAnalysisProblemData problemData = (DataAnalysisProblemData)e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat);
     132          Content.ProblemData = (DataAnalysisProblemData)problemData.Clone();
     133        }
     134      }
     135    }
     136    #endregion
    120137  }
    121138}
Note: See TracChangeset for help on using the changeset viewer.