public ShimDataMember(IDefinitionPath parentDefinitionPath, CustomReportItem owner, ShimDataMember parent, int parentCollectionIndex, bool isColumn, bool isStatic, AspNetCore.ReportingServices.ReportRendering.DataMemberCollection renderMembers, int staticIndex) : base(parentDefinitionPath, owner, parent, parentCollectionIndex) { this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); this.m_isColumn = isColumn; this.m_isStatic = isStatic; this.m_renderMembers = renderMembers; this.m_staticIndex = staticIndex; DataGroupingCollection children; if (isStatic) { children = renderMembers[staticIndex].Children; } else { base.m_group = new Group(owner, new ShimRenderGroups(renderMembers)); children = renderMembers[0].Children; } if (children != null) { base.m_children = new ShimDataMemberCollection(this, owner, isColumn, this, children); } else { owner.GetAndIncrementMemberCellDefinitionIndex(); } this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimDataMemberCollection(IDefinitionPath parentDefinitionPath, CustomReportItem owner, bool isColumnMember, ShimDataMember parent, DataGroupingCollection definitionGroups) : base(parentDefinitionPath, owner) { this.m_isColumnMember = isColumnMember; this.m_definitionGroups = definitionGroups; this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); if (definitionGroups[0] != null && definitionGroups[0][0] != null) { this.m_isStatic = definitionGroups[0][0].IsStatic; } int count = definitionGroups.Count; base.m_children = new ShimDataMember[count]; for (int i = 0; i < count; i++) { base.m_children[i] = new ShimDataMember(this, owner, parent, i, this.m_isColumnMember, this.m_isStatic, definitionGroups[i], i); } this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }