예제 #1
0
        private void ResetNodeTextSize(NodeView nView)
        {
            MapNode node = nView.Node;

            nView.RefreshText();

            if (node == node.Tree.RootNode)
            {
                node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            }
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }
예제 #2
0
        private void IncreaseNodeTextSize(NodeView nView, int width)
        {
            MapNode node = nView.Node;

            nView.RefreshText(new SizeF(width, nView.RecText.Height));

            if (node == node.Tree.RootNode)
            {
                node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            }
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }
예제 #3
0
        private void ResetNodeTextSize(NodeView nView)
        {
            MapNode node = nView.Node;

            nView.RefreshText();

            if (node == node.Tree.RootNode) node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }
예제 #4
0
        private void IncreaseNodeTextSize(NodeView nView, int width)
        {
            MapNode node = nView.Node;

            nView.RefreshText(new SizeF(width, nView.RecText.Height));

            if (node == node.Tree.RootNode) node.NodeView.RefreshPosition(node.NodeView.Left, node.NodeView.Top);
            mapView.RefreshNodePositions(node.Parent != null ? node.Parent : node, NodePosition.Undefined);

            mapView.Canvas.Invalidate();
        }