public void ResetContext(AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection newRenderMemberCollection) { if (base.m_children != null) { if (this.m_isDynamic) { ShimRenderGroups renderGroups = (newRenderMemberCollection != null) ? new ShimRenderGroups(newRenderMemberCollection) : null; ((ShimChartMember)base.m_children[0]).ResetContext(null, renderGroups); } else { for (int i = 0; i < base.m_children.Length; i++) { AspNetCore.ReportingServices.ReportRendering.ChartMember staticOrSubtotal = (newRenderMemberCollection != null) ? newRenderMemberCollection[i] : null; ((ShimChartMember)base.m_children[i]).ResetContext(staticOrSubtotal, null); } } } }
private void GenerateInnerHierarchy(Chart owner, ShimChartMember parent, bool isCategory, AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection children) { if (children != null) { base.m_children = new ShimChartMemberCollection(this, owner, isCategory, this, children); } else { owner.GetAndIncrementMemberCellDefinitionIndex(); } }
public ShimChartMemberCollection(IDefinitionPath parentDefinitionPath, Chart owner, bool isCategoryGroup, ShimChartMember parent, AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection renderMemberCollection) : base(parentDefinitionPath, owner) { this.m_isCategoryGroup = isCategoryGroup; this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); int count = renderMemberCollection.Count; if (renderMemberCollection[0].IsStatic) { this.m_isDynamic = false; base.m_children = new ShimChartMember[count]; for (int i = 0; i < count; i++) { base.m_children[i] = new ShimChartMember(this, owner, parent, i, isCategoryGroup, renderMemberCollection[i]); } } else { this.m_isDynamic = true; base.m_children = new ShimChartMember[1]; base.m_children[0] = new ShimChartMember(this, owner, parent, 0, isCategoryGroup, new ShimRenderGroups(renderMemberCollection)); } this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
public ShimRenderGroups(AspNetCore.ReportingServices.ReportRendering.ChartMemberCollection renderGroups) { this.m_type = DataRegion.Type.Chart; this.m_renderChartMembers = renderGroups; }