public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(GaugeMember.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeMember:
                    this.ChildGaugeMember = (GaugeMember)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnMembers:
                    this.m_innerMembers = reader.ReadListOfRIFObjects <GaugeMemberList>();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Beispiel #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(GaugePanel.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeMember:
                    this.GaugeMember = (GaugeMember)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeRowMember:
                    this.GaugeRowMember = (GaugeMember)reader.ReadRIFObject();
                    break;

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

                case MemberName.LinearGauges:
                    this.m_linearGauges = reader.ReadGenericListOfRIFObjects <LinearGauge>();
                    break;

                case MemberName.RadialGauges:
                    this.m_radialGauges = reader.ReadGenericListOfRIFObjects <RadialGauge>();
                    break;

                case MemberName.NumericIndicators:
                    this.m_numericIndicators = reader.ReadGenericListOfRIFObjects <NumericIndicator>();
                    break;

                case MemberName.StateIndicators:
                    this.m_stateIndicators = reader.ReadGenericListOfRIFObjects <StateIndicator>();
                    break;

                case MemberName.GaugeImages:
                    this.m_gaugeImages = reader.ReadGenericListOfRIFObjects <GaugeImage>();
                    break;

                case MemberName.GaugeLabels:
                    this.m_gaugeLabels = reader.ReadGenericListOfRIFObjects <GaugeLabel>();
                    break;

                case MemberName.AntiAliasing:
                    this.m_antiAliasing = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.AutoLayout:
                    this.m_autoLayout = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.BackFrame:
                    this.m_backFrame = (BackFrame)reader.ReadRIFObject();
                    break;

                case MemberName.ShadowIntensity:
                    this.m_shadowIntensity = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TextAntiAliasingQuality:
                    this.m_textAntiAliasingQuality = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TopImage:
                    this.m_topImage = (TopImage)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnMembers:
                    this.m_columnMembers = reader.ReadListOfRIFObjects <GaugeMemberList>();
                    break;

                case MemberName.RowMembers:
                    this.m_rowMembers = reader.ReadListOfRIFObjects <GaugeMemberList>();
                    break;

                case MemberName.Rows:
                    this.m_rows = reader.ReadListOfRIFObjects <GaugeRowList>();
                    break;

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