protected RealignFactoryBase(IRealignControl mainControl, RealignStyle realignStyle, bool isPartialRealign) { Ref = mainControl; RealignStyle = realignStyle; if (Ref.HasVisibleNodes()) { _map = new RealignMap(Ref.GetVisibleNodeControls().ToList(), Ref.GetRelationships().ToList(), realignStyle, isPartialRealign); } if (_map != null && _map.ChildNodes.Count > 0) { Nodes = _map.GetAllChildNodes(realignStyle).ToList(); } }