public HierarchicalLevelLoop AddLevel(int id, string code) { var l = new HierarchicalLevelLoop(_segmentFactory, _showHasChildElement); if(_showHasChildElement && !_childElementAdded ) addChildElement(); AddLoop(l); l.SetHeader(id, code); return l; }
public HierarchicalLevelLoop AddLevel(int id, string code) { var l = new HierarchicalLevelLoop(_segmentFactory, _showHasChildElement); if (_showHasChildElement && !_childElementAdded) { addChildElement(); } AddLoop(l); l.SetHeader(id, code); return(l); }
private HierarchicalLevelLoopWrapper(string code, ISegmentFactory factory, bool hasChild) { Root = new HierarchicalLevelLoop(factory, hasChild); _printHasChildElement = hasChild; Root.SetHeader(_currentId, code); }
private HierarchicalLevelLoopWrapper(string code, ISegmentFactory factory, bool hasChild) { Root = new HierarchicalLevelLoop(factory, hasChild); _printHasChildElement = hasChild; Root.SetHeader(_currentId, code); }