Beispiel #1
0
        public override bool Load(Serializer.RSFileReader br)
        {
            if (base.Load(br))
            {
                byte b;
                while ((b = br.ReadByte()) != 0)
                {
                    switch (b)
                    {
                    case 10:
                        Columns = br.ReadInt32();
                        break;

                    case 11:
                        ColumnSeparatorStyle = (SMLineStyle)br.ReadInt32();
                        break;

                    case 12:
                        ColumnSeparatorWidth = br.ReadFloat();
                        break;

                    case 13:
                        ShowNavigationButtons = br.ReadBool();
                        break;

                    case 14:
                        RunningLine = (SMRunningLine)br.ReadInt32();
                        break;
                    }
                }
                return(true);
            }

            return(false);
        }
Beispiel #2
0
        public override bool Load(Serializer.RSFileReader br)
        {
            if (base.Load(br))
            {
                byte b;
                while ((b = br.ReadByte()) != 0)
                {
                    switch (b)
                    {
                    case 10:
                        br.ReadInt32();
                        break;

                    case 11:
                        br.ReadInt32();
                        break;

                    case 12:
                        br.ReadFloat();
                        break;

                    case 13:
                        br.ReadBool();
                        break;

                    case 14:
                        br.ReadInt32();
                        break;

                    case 15:
                        ItemLayout.Load(br);
                        break;

                    case 16:
                        ItemMargin.Load(br);
                        break;

                    case 17:
                        ItemPadding.Load(br);
                        break;
                    }
                }
                return(true);
            }

            return(false);
        }