Exemple #1
0
        /// <summary>Default implementation assumes low word of SingleParam stored first, then high word</summary>
        public override void Read(ArchiveReader ar)
        {
            base.Read(ar);
            short low  = ar.ReadInt16();
            short high = ar.ReadInt16();

            SingleParam = low + (high << 16);
        }
Exemple #2
0
        public void Read(ArchiveReader ar)
        {
            string strSerializeID = ar.ReadStringL();

            if (strSerializeID != SERIALISEHEADER)
            {
                throw new System.IO.IOException("File does not start with correct header - not a SAW6 file");
            }
            Version = ar.ReadInt16();
            if (Version < 5004)
            {
                throw new InvalidOperationException("Cannot read SAW files from before version 5.00.4");
            }
            DesktopSize      = ar.ReadPoint();
            MainWindowBounds = ar.ReadRectangleRaw();
            PromptID         = -1;
            int.TryParse(ar.ReadStringL(), out PromptID);
            NextControlID = (int)ar.ReadUInt32();
        }