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.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs

    r5744 r5837  
    204204    private void OperatorGraphView_DragEnterOver(object sender, DragEventArgs e) {
    205205      e.Effect = DragDropEffects.None;
    206       if (!ReadOnly && (e.Data.GetData("HeuristicLab") is IOperator)) {
     206      if (!ReadOnly && (e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) is IOperator)) {
    207207        if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link;  // ALT key
    208208        else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move;  // SHIFT key
     
    215215    private void OperatorGraphView_DragDrop(object sender, DragEventArgs e) {
    216216      if (e.Effect != DragDropEffects.None) {
    217         IOperator op = e.Data.GetData("HeuristicLab") as IOperator;
     217        IOperator op = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat) as IOperator;
    218218        if (e.Effect.HasFlag(DragDropEffects.Copy)) op = (IOperator)op.Clone();
    219219        IOperatorShapeInfo shapeInfo = OperatorShapeInfoFactory.CreateOperatorShapeInfo(op);
Note: See TracChangeset for help on using the changeset viewer.