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

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

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

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

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

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

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

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

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

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

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemplo n.º 2
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            ChartDataPointValues chartDataPointValues = (ChartDataPointValues)MemberwiseClone();

            chartDataPointValues.m_chart = (Chart)context.CurrentDataRegionClone;
            if (m_x != null)
            {
                chartDataPointValues.m_x = (ExpressionInfo)m_x.PublishClone(context);
            }
            if (m_y != null)
            {
                chartDataPointValues.m_y = (ExpressionInfo)m_y.PublishClone(context);
            }
            if (m_size != null)
            {
                chartDataPointValues.m_size = (ExpressionInfo)m_size.PublishClone(context);
            }
            if (m_high != null)
            {
                chartDataPointValues.m_high = (ExpressionInfo)m_high.PublishClone(context);
            }
            if (m_low != null)
            {
                chartDataPointValues.m_low = (ExpressionInfo)m_low.PublishClone(context);
            }
            if (m_start != null)
            {
                chartDataPointValues.m_start = (ExpressionInfo)m_start.PublishClone(context);
            }
            if (m_end != null)
            {
                chartDataPointValues.m_end = (ExpressionInfo)m_end.PublishClone(context);
            }
            if (m_mean != null)
            {
                chartDataPointValues.m_mean = (ExpressionInfo)m_mean.PublishClone(context);
            }
            if (m_median != null)
            {
                chartDataPointValues.m_median = (ExpressionInfo)m_median.PublishClone(context);
            }
            return(chartDataPointValues);
        }
 internal ChartDataPointValues(ChartDataPoint dataPoint, Microsoft.ReportingServices.ReportIntermediateFormat.ChartDataPointValues chartDataPointValuesDef, Chart chart)
 {
     m_dataPoint = dataPoint;
     m_chartDataPointValuesDef = chartDataPointValuesDef;
     m_chart = chart;
 }