- Timestamp:
- 03/28/11 14:53:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs
r5744 r5837 204 204 private void OperatorGraphView_DragEnterOver(object sender, DragEventArgs e) { 205 205 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)) { 207 207 if ((e.KeyState & 32) == 32) e.Effect = DragDropEffects.Link; // ALT key 208 208 else if ((e.KeyState & 4) == 4) e.Effect = DragDropEffects.Move; // SHIFT key … … 215 215 private void OperatorGraphView_DragDrop(object sender, DragEventArgs e) { 216 216 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; 218 218 if (e.Effect.HasFlag(DragDropEffects.Copy)) op = (IOperator)op.Clone(); 219 219 IOperatorShapeInfo shapeInfo = OperatorShapeInfoFactory.CreateOperatorShapeInfo(op);
Note: See TracChangeset
for help on using the changeset viewer.