public static LoopTerminateLifetimeTunnel CreateLoopConditionTunnel(IElementCreateInfo elementCreateInfo)
        {
            var loopTerminateLifetimeTunnel = new LoopTerminateLifetimeTunnel();

            loopTerminateLifetimeTunnel.Initialize(elementCreateInfo);
            return(loopTerminateLifetimeTunnel);
        }
Example #2
0
        public TerminateLifetimeTunnelGuide(SMRect r, LoopTerminateLifetimeTunnel rightRegister, SMThickness border, IEnumerable <SMRect> avoidRects)
        {
            // go ahead and coerce rect, because we can't go over borders.
            _rect        = r;
            _rect.Y     += border.Top;
            _rect.Height = Math.Max(_rect.Height - border.Top - border.Bottom, 0);

            _terminateLifetimeTunnel = rightRegister;

            _avoidRects = avoidRects ?? new List <SMRect>();
        }