public void WhenDroppedOntoEditor(ICanvas canvas, DraggingContext context)
 {
     if( _whenDroppedOntoEditor !=null )
     {
         _whenDroppedOntoEditor( canvas, context ) ;
     }
 }
 public void WhenEnteringEditor( ICanvas canvas, DraggingContext context)
 {
     if (_whenEnteringEditor != null)
     {
         _whenEnteringEditor(context);
     }
 }
 public void WhenBeingDraggedOverEditor(ICanvas canvas, DraggingContext draggingContext)
 {
     if (_whenDraggingOverEditor != null)
     {
         _whenDraggingOverEditor(canvas, draggingContext);
     }
 }
        public void WhenDroppedOntoEditor(ICanvas canvas, DraggingContext context)
        {
            ITreeItem itemEditor = canvas.ItemUnderMouse;

            if (itemEditor == null)
            {
                return;
            }

            IoC.Model.AttachBehaviour(itemEditor, _buildBehaviour(itemEditor));
        }
        public void WhenBeingDraggedOverEditor(ICanvas canvas, DraggingContext draggingContext)
        {
            ITreeItem itemEditor = canvas.ItemUnderMouse;

            if (itemEditor == null)
            {
                draggingContext.DragEventArgs.Effect = DragDropEffects.None;
            }

            draggingContext.DragEventArgs.Effect = DragDropEffects.Link;
        }
Beispiel #6
0
        public void DroppedOnCanvas(ICanvas canvas, DragEventArgs eventArgs)
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenDroppedOntoEditor(canvas, context);
        }
Beispiel #7
0
        public void DraggingOverEditor(ICanvas canvas, DragEventArgs eventArgs)
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenBeingDraggedOverEditor(canvas, context);
        }
Beispiel #8
0
        public void EnteredEditor(ICanvas canvas, DragEventArgs eventArgs)
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenEnteringEditor(canvas, context);
        }
Beispiel #9
0
 void whenEnteringEditor( DraggingContext draggingContext )
 {
     draggingContext.DragEventArgs.Effect=DragDropEffects.Move;
 }
Beispiel #10
0
 void whenDroppedOntoEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     canvas.StartCreatingEntityNow(
         new EntityCreationProperties(GetType(), UiAction.Dragging));
 }
Beispiel #11
0
 void whenDraggingOverEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     draggingContext.DragEventArgs.Effect=DragDropEffects.Move;
 }
 public void WhenLeavingEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     if (_whenLeavingEditor != null)
     {
         _whenLeavingEditor(draggingContext);
     }
 }
Beispiel #13
0
 public void WhenEnteringEditor( ICanvas canvas, DraggingContext context)
 {
     _temporaryEntityOnCanvas = canvas.StartCreatingEntityNow(_entityCreationProperties);
 }
Beispiel #14
0
 public void WhenBeingDraggedOverEditor(ICanvas canvas, DraggingContext draggingContext)
 {
     _temporaryEntityOnCanvas.CurrentEditor.SetPosition(MouseStatus.WorldPosition);
     draggingContext.DragEventArgs.Effect = DRAG_DROP_EFFECTS;
 }
Beispiel #15
0
 public void EnteredEditor( ICanvas canvas, DragEventArgs eventArgs )
 {
     var context = new DraggingContext(eventArgs);
     _handlerForPlugin.WhenEnteringEditor( canvas, context );
 }
Beispiel #16
0
        public void DroppedOnCanvas( ICanvas canvas, DragEventArgs eventArgs )
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenDroppedOntoEditor(canvas, context ) ;
        }
Beispiel #17
0
        public void DraggingOverEditor( ICanvas canvas, DragEventArgs eventArgs )
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenBeingDraggedOverEditor( canvas, context );
        }
Beispiel #18
0
 public void WhenDroppedOntoEditor(ICanvas canvas, DraggingContext context)
 {
     canvas.AddNewItemAtMouse(_temporaryEntityOnCanvas.CurrentEditor);
     canvas.SetModeTo(UserActionInEditor.Idle);
 }
 public void WhenEnteringEditor( ICanvas canvas, DraggingContext context)
 {
 }
Beispiel #20
0
 public void WhenLeavingEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     canvas.StopCreatingEntity();
 }
 public void WhenLeavingEditor( ICanvas canvas, DraggingContext draggingContext )
 {
 }