Exemple #1
0
        internal NodeMovingOperation(Mindmap mindmap, Win2DRenderNode renderNode, Node targetNode)
        {
            this.mindmap    = mindmap;
            this.document   = mindmap.Document;
            this.renderer   = mindmap.Renderer;
            this.renderNode = renderNode;
            this.targetNode = targetNode;

            initialPosition = renderNode.RenderPosition;
        }
Exemple #2
0
        public static NodeMovingOperation Start(Mindmap mindmap, Win2DRenderNode renderNode)
        {
            if (renderNode != null)
            {
                var movingNode = renderNode.Node as Node;

                if (movingNode != null && movingNode.IsSelected && mindmap.Document != null)
                {
                    return(new NodeMovingOperation(mindmap, renderNode, movingNode));
                }
            }

            return(null);
        }