public void WhenBeingDraggedOverEditor(ICanvas canvas, DraggingContext draggingContext)
 {
     if (_whenDraggingOverEditor != null)
     {
         _whenDraggingOverEditor(canvas, draggingContext);
     }
 }
 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 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;
        }
 public void WhenLeavingEditor( ICanvas canvas, DraggingContext draggingContext )
 {
 }
 public void WhenEnteringEditor( ICanvas canvas, DraggingContext context)
 {
 }
 public void WhenLeavingEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     if (_whenLeavingEditor != null)
     {
         _whenLeavingEditor(draggingContext);
     }
 }
 public void WhenEnteringEditor( ICanvas canvas, DraggingContext context)
 {
     _temporaryEntityOnCanvas = canvas.StartCreatingEntityNow(_entityCreationProperties);
 }
Exemplo n.º 10
0
        public void DraggingOverEditor( ICanvas canvas, DragEventArgs eventArgs )
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenBeingDraggedOverEditor( canvas, context );
        }
 void whenDroppedOntoEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     canvas.StartCreatingEntityNow(
         new EntityCreationProperties(GetType(), UiAction.Dragging));
 }
 void whenEnteringEditor( DraggingContext draggingContext )
 {
     draggingContext.DragEventArgs.Effect=DragDropEffects.Move;
 }
 void whenDraggingOverEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     draggingContext.DragEventArgs.Effect=DragDropEffects.Move;
 }
Exemplo n.º 14
0
 public void EnteredEditor( ICanvas canvas, DragEventArgs eventArgs )
 {
     var context = new DraggingContext(eventArgs);
     _handlerForPlugin.WhenEnteringEditor( canvas, context );
 }
Exemplo n.º 15
0
        public void DroppedOnCanvas( ICanvas canvas, DragEventArgs eventArgs )
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenDroppedOntoEditor(canvas, context ) ;
        }
 public void WhenBeingDraggedOverEditor(ICanvas canvas, DraggingContext draggingContext)
 {
     _temporaryEntityOnCanvas.CurrentEditor.SetPosition(MouseStatus.WorldPosition);
     draggingContext.DragEventArgs.Effect = DRAG_DROP_EFFECTS;
 }
Exemplo n.º 17
0
        public void DraggingOverEditor(ICanvas canvas, DragEventArgs eventArgs)
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenBeingDraggedOverEditor(canvas, context);
        }
 public void WhenDroppedOntoEditor(ICanvas canvas, DraggingContext context)
 {
     canvas.AddNewItemAtMouse(_temporaryEntityOnCanvas.CurrentEditor);
     canvas.SetModeTo(UserActionInEditor.Idle);
 }
Exemplo n.º 19
0
        public void DroppedOnCanvas(ICanvas canvas, DragEventArgs eventArgs)
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenDroppedOntoEditor(canvas, context);
        }
 public void WhenLeavingEditor( ICanvas canvas, DraggingContext draggingContext )
 {
     canvas.StopCreatingEntity();
 }
Exemplo n.º 21
0
        public void EnteredEditor(ICanvas canvas, DragEventArgs eventArgs)
        {
            var context = new DraggingContext(eventArgs);

            _handlerForPlugin.WhenEnteringEditor(canvas, context);
        }