Exemplo n.º 1
0
 internal ShimChartMember(IDefinitionPath parentDefinitionPath, Chart owner, ShimChartMember parent, int parentCollectionIndex, bool isCategory, Microsoft.ReportingServices.ReportRendering.ChartMember staticOrSubtotal)
     : base(parentDefinitionPath, owner, parent, parentCollectionIndex)
 {
     m_definitionStartIndex = owner.GetCurrentMemberCellDefinitionIndex();
     m_isCategory           = isCategory;
     m_staticOrSubtotal     = staticOrSubtotal;
     GenerateInnerHierarchy(owner, parent, isCategory, staticOrSubtotal.Children);
     m_definitionEndIndex = owner.GetCurrentMemberCellDefinitionIndex();
 }
Exemplo n.º 2
0
 private void UpdateInnerContext(Microsoft.ReportingServices.ReportRendering.ChartMember currentRenderGroup)
 {
     if (m_children != null)
     {
         ((ShimChartMemberCollection)m_children).ResetContext(currentRenderGroup.Children);
     }
     else
     {
         ((ShimChartSeriesCollection)base.OwnerChart.ChartData.SeriesCollection).UpdateCells(this);
     }
 }
Exemplo n.º 3
0
 internal void ResetContext(Microsoft.ReportingServices.ReportRendering.ChartMember staticOrSubtotal, ShimRenderGroups renderGroups)
 {
     if (m_group != null)
     {
         m_group.CurrentRenderGroupIndex = -1;
         if (renderGroups != null)
         {
             m_group.RenderGroups = renderGroups;
         }
     }
     else if (staticOrSubtotal != null)
     {
         m_staticOrSubtotal = staticOrSubtotal;
     }
     Microsoft.ReportingServices.ReportRendering.ChartMember currentRenderGroup = IsStatic ? m_staticOrSubtotal : (m_group.CurrentShimRenderGroup as Microsoft.ReportingServices.ReportRendering.ChartMember);
     UpdateInnerContext(currentRenderGroup);
 }
Exemplo n.º 4
0
 internal void ResetContext(Microsoft.ReportingServices.ReportRendering.ChartMemberCollection newRenderMemberCollection)
 {
     if (m_children == null)
     {
         return;
     }
     if (m_isDynamic)
     {
         ShimRenderGroups renderGroups = (newRenderMemberCollection != null) ? new ShimRenderGroups(newRenderMemberCollection) : null;
         ((ShimChartMember)m_children[0]).ResetContext(null, renderGroups);
         return;
     }
     for (int i = 0; i < m_children.Length; i++)
     {
         Microsoft.ReportingServices.ReportRendering.ChartMember staticOrSubtotal = newRenderMemberCollection?[i];
         ((ShimChartMember)m_children[i]).ResetContext(staticOrSubtotal, null);
     }
 }