Esempio n. 1
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ChartDataPoint.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.DataPointValues:
                    this.m_dataPointValues = (ChartDataPointValues)reader.ReadRIFObject();
                    break;

                case MemberName.DataLabel:
                    this.m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.StyleClass:
                    this.m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.DataElementName:
                    this.m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    this.m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                case MemberName.CustomProperties:
                    this.m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.Marker:
                    this.m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.AxisLabel:
                    this.m_axisLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartItemInLegend:
                    this.m_itemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public object PublishClone(AutomaticSubtotalContext context)
        {
            ChartItemInLegend chartItemInLegend = (ChartItemInLegend)base.MemberwiseClone();

            chartItemInLegend.m_chart = (Chart)context.CurrentDataRegionClone;
            if (this.m_action != null)
            {
                chartItemInLegend.m_action = (Action)this.m_action.PublishClone(context);
            }
            if (this.m_legendText != null)
            {
                chartItemInLegend.m_legendText = (ExpressionInfo)this.m_legendText.PublishClone(context);
            }
            if (this.m_toolTip != null)
            {
                chartItemInLegend.m_toolTip = (ExpressionInfo)this.m_toolTip.PublishClone(context);
            }
            if (this.m_hidden != null)
            {
                chartItemInLegend.m_hidden = (ExpressionInfo)this.m_hidden.PublishClone(context);
            }
            return(chartItemInLegend);
        }
 public ChartItemInLegend(InternalChartDataPoint chartDataPoint, AspNetCore.ReportingServices.ReportIntermediateFormat.ChartItemInLegend chartItemInLegendDef, Chart chart)
 {
     this.m_dataPoint            = chartDataPoint;
     this.m_chartItemInLegendDef = chartItemInLegendDef;
     this.m_chart = chart;
 }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ChartSeries.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.ChartDataPoints:
                    this.m_dataPoints = reader.ReadListOfRIFObjects <ChartDataPointList>();
                    break;

                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.Chart:
                    this.m_chart = reader.ReadReference <Chart>(this);
                    break;

                case MemberName.ChartMember:
                    this.m_parentChartMember = reader.ReadReference <ChartMember>(this);
                    break;

                case MemberName.SourceSeries:
                    this.m_sourceSeries = reader.ReadReference <ChartSeries>(this);
                    break;

                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Type:
                    this.m_type = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Subtype:
                    this.m_subtype = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EmptyPoints:
                    this.m_emptyPoints = (ChartEmptyPoints)reader.ReadRIFObject();
                    break;

                case MemberName.LegendName:
                    this.m_legendName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LegendText:
                    this.m_legendText = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartAreaName:
                    this.m_chartAreaName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ValueAxisName:
                    this.m_valueAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CategoryAxisName:
                    this.m_categoryAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StyleClass:
                    this.m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.Hidden:
                    this.m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.HideInLegend:
                    this.m_hideInLegend = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartSmartLabel:
                    this.m_chartSmartLabel = (ChartSmartLabel)reader.ReadRIFObject();
                    break;

                case MemberName.CustomProperties:
                    this.m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.DataLabel:
                    this.m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.Marker:
                    this.m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartItemInLegend:
                    this.m_chartItemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
 public ChartItemInLegend(InternalChartSeries chartSeries, AspNetCore.ReportingServices.ReportIntermediateFormat.ChartItemInLegend chartItemInLegendDef, Chart chart)
 {
     this.m_chartSeries          = chartSeries;
     this.m_chartItemInLegendDef = chartItemInLegendDef;
     this.m_chart = chart;
 }