Beispiel #1
0
        protected void AdjustPositions(IContainerNode containerNode, SizeF offset)
        {
            var oldLocation = containerNode.Location;

            foreach (var neighborhoodNode in containerNode.GetLinkedNodes <INeighborhoodNode>(true))
            {
                neighborhoodNode.AdjustPositionForContainerInMove(containerNode, offset);
            }
            containerNode.Location = oldLocation;
        }
        public virtual void Focus(IContainerNode containerBaseNode)
        {
            // Show node and expand it
            containerBaseNode.SetHiddenRecursive(false);
            containerBaseNode.Expand(0);

            // Show neighbors
            foreach (var neighborNode in containerBaseNode.GetLinkedNodes <IBaseNode>(true))
            {
                neighborNode.Hidden = false;
            }

            containerBaseNode.PostLayoutStep();
            _view.Refresh();
        }