Пример #1
0
 internal override void InternalInitialize(int parentRowID, int parentColumnID, int rowindex, int colIndex, InitializationContext context)
 {
     Microsoft.ReportingServices.RdlExpressions.ExprHostBuilder exprHostBuilder = context.ExprHostBuilder;
     if (m_dataPointValues != null)
     {
         m_dataPointValues.Initialize(context);
     }
     if (m_dataLabel != null)
     {
         m_dataLabel.Initialize(context);
     }
     if (m_action != null)
     {
         m_action.Initialize(context);
     }
     if (m_styleClass != null)
     {
         exprHostBuilder.DataPointStyleStart();
         m_styleClass.Initialize(context);
         exprHostBuilder.DataPointStyleEnd();
     }
     if (m_marker != null)
     {
         m_marker.Initialize(context);
     }
     if (m_customProperties != null)
     {
         m_customProperties.Initialize(null, context);
     }
     if (m_axisLabel != null)
     {
         m_axisLabel.Initialize("AxisLabel", context);
         context.ExprHostBuilder.ChartDataPointAxisLabel(m_axisLabel);
     }
     if (m_itemInLegend != null)
     {
         m_itemInLegend.Initialize(context);
     }
     if (m_toolTip != null)
     {
         m_toolTip.Initialize("ToolTip", context);
         context.ExprHostBuilder.ChartDataPointToolTip(m_toolTip);
     }
     DataRendererInitialize(context);
 }
Пример #2
0
        internal void Initialize(InitializationContext context, string name)
        {
            context.ExprHostBuilder.ChartSeriesStart();
            if (m_customProperties != null)
            {
                m_customProperties.Initialize("ChartSeries" + name, context);
            }
            if (m_styleClass != null)
            {
                m_styleClass.Initialize(context);
            }
            if (m_action != null)
            {
                m_action.Initialize(context);
            }
            if (m_type == null)
            {
                m_type = ExpressionInfo.CreateConstExpression(ChartSeriesType.Column.ToString());
            }
            m_type.Initialize("Type", context);
            context.ExprHostBuilder.ChartSeriesType(m_type);
            if (m_subtype == null)
            {
                m_subtype = ExpressionInfo.CreateConstExpression(ChartSeriesSubtype.Plain.ToString());
            }
            m_subtype.Initialize("Subtype", context);
            context.ExprHostBuilder.ChartSeriesSubtype(m_subtype);
            if (m_chartSmartLabel != null)
            {
                m_chartSmartLabel.Initialize(context);
            }
            if (m_emptyPoints != null)
            {
                m_emptyPoints.Initialize(context);
            }
            if (m_legendName != null)
            {
                m_legendName.Initialize("LegendName", context);
                context.ExprHostBuilder.ChartSeriesLegendName(m_legendName);
            }
            if (m_legendText != null)
            {
                m_legendText.Initialize("LegendText", context);
                context.ExprHostBuilder.ChartSeriesLegendText(m_legendText);
            }
            if (m_chartAreaName != null)
            {
                m_chartAreaName.Initialize("ChartAreaName", context);
                context.ExprHostBuilder.ChartSeriesChartAreaName(m_chartAreaName);
            }
            if (m_valueAxisName != null)
            {
                m_valueAxisName.Initialize("ValueAxisName", context);
                context.ExprHostBuilder.ChartSeriesValueAxisName(m_valueAxisName);
            }
            if (m_categoryAxisName != null)
            {
                m_categoryAxisName.Initialize("CategoryAxisName", context);
                context.ExprHostBuilder.ChartSeriesCategoryAxisName(m_categoryAxisName);
            }
            if (m_hidden != null)
            {
                m_hidden.Initialize("Hidden", context);
                context.ExprHostBuilder.ChartSeriesHidden(m_hidden);
            }
            if (m_hideInLegend != null)
            {
                m_hideInLegend.Initialize("HideInLegend", context);
                context.ExprHostBuilder.ChartSeriesHideInLegend(m_hideInLegend);
            }
            if (m_dataLabel != null)
            {
                m_dataLabel.Initialize(context);
            }
            if (m_marker != null)
            {
                m_marker.Initialize(context);
            }
            List <ChartDerivedSeries> childrenDerivedSeries = ChildrenDerivedSeries;

            if (childrenDerivedSeries != null)
            {
                for (int i = 0; i < childrenDerivedSeries.Count; i++)
                {
                    childrenDerivedSeries[i].Initialize(context, i);
                }
            }
            if (m_toolTip != null)
            {
                m_toolTip.Initialize("ToolTip", context);
                context.ExprHostBuilder.ChartSeriesToolTip(m_toolTip);
            }
            if (m_chartItemInLegend != null)
            {
                m_chartItemInLegend.Initialize(context);
            }
            context.ExprHostBuilder.ChartSeriesEnd();
        }