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.ChartMembers:
                    m_chartMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

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

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

                case MemberName.Label:
                    m_labelExpression = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemplo n.º 2
0
 internal ChartMember GetChartMember(ChartMemberList chartMemberList, int memberCellIndex)
 {
     foreach (ChartMember chartMember3 in chartMemberList)
     {
         if (chartMember3.ChartMembers == null)
         {
             if (chartMember3.MemberCellIndex == memberCellIndex)
             {
                 return(chartMember3);
             }
             continue;
         }
         ChartMember chartMember2 = GetChartMember(chartMember3.ChartMembers, memberCellIndex);
         if (chartMember2 != null)
         {
             return(chartMember2);
         }
     }
     return(null);
 }
Exemplo n.º 3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.CategoryMembers:
                    m_categoryMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.SeriesMembers:
                    m_seriesMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.ChartSeriesCollection:
                    m_chartSeriesCollection = reader.ReadListOfRIFObjects <ChartSeriesList>();
                    break;

                case MemberName.ChartDerivedSeriesCollection:
                    m_chartDerivedSeriesCollection = reader.ReadGenericListOfRIFObjects <ChartDerivedSeries>();
                    break;

                case MemberName.Palette:
                    m_palette = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartLegends:
                    m_legends = reader.ReadGenericListOfRIFObjects <ChartLegend>();
                    break;

                case MemberName.ChartAreas:
                    m_chartAreas = reader.ReadGenericListOfRIFObjects <ChartArea>();
                    break;

                case MemberName.Titles:
                    m_titles = reader.ReadGenericListOfRIFObjects <ChartTitle>();
                    break;

                case MemberName.DynamicHeight:
                    m_dynamicHeight = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DynamicWidth:
                    m_dynamicWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CodeParameters:
                    m_codeParameters = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.CustomPaletteColors:
                    m_customPaletteColors = reader.ReadGenericListOfRIFObjects <ChartCustomPaletteColor>();
                    break;

                case MemberName.NoDataMessage:
                    m_noDataMessage = (ChartNoDataMessage)reader.ReadRIFObject();
                    break;

                case MemberName.BorderSkin:
                    m_borderSkin = (ChartBorderSkin)reader.ReadRIFObject();
                    break;

                case MemberName.DataValueSequenceRendering:
                    m_dataValueSequenceRendering = reader.ReadBoolean();
                    break;

                case MemberName.PaletteHatchBehavior:
                    m_paletteHatchBehavior = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnGroupingIsSwitched:
                    m_columnGroupingIsSwitched = reader.ReadBoolean();
                    break;

                case MemberName.EnableCategoryDrilldown:
                    m_enableCategoryDrilldown = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }