public ShimChartMember(IDefinitionPath parentDefinitionPath, Chart owner, ShimChartMember parent, int parentCollectionIndex, bool isCategory, AspNetCore.ReportingServices.ReportRendering.ChartMember staticOrSubtotal) : base(parentDefinitionPath, owner, parent, parentCollectionIndex) { this.m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex(); this.m_isCategory = isCategory; this.m_staticOrSubtotal = staticOrSubtotal; this.GenerateInnerHierarchy(owner, parent, isCategory, staticOrSubtotal.Children); this.m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex(); }
private void UpdateInnerContext(AspNetCore.ReportingServices.ReportRendering.ChartMember currentRenderGroup) { if (base.m_children != null) { ((ShimChartMemberCollection)base.m_children).ResetContext(currentRenderGroup.Children); } else { ((ShimChartSeriesCollection)base.OwnerChart.ChartData.SeriesCollection).UpdateCells(this); } }
public void ResetContext(AspNetCore.ReportingServices.ReportRendering.ChartMember staticOrSubtotal, ShimRenderGroups renderGroups) { if (base.m_group != null) { base.m_group.CurrentRenderGroupIndex = -1; if (renderGroups != null) { base.m_group.RenderGroups = renderGroups; } } else if (staticOrSubtotal != null) { this.m_staticOrSubtotal = staticOrSubtotal; } AspNetCore.ReportingServices.ReportRendering.ChartMember currentRenderGroup = this.IsStatic ? this.m_staticOrSubtotal : (base.m_group.CurrentShimRenderGroup as AspNetCore.ReportingServices.ReportRendering.ChartMember); this.UpdateInnerContext(currentRenderGroup); }
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); } } } }