Esempio n. 1
0
 private void SaveSheet(LC4Sheet sheet)
 {
     WriteBytes(m_sheetPreambule);
     WriteString(sheet.SomeString1);
     WriteString(sheet.SomeString2);
     WriteString(sheet.SomeString3);
     WriteNumeric(sheet.Size1);
     WriteNumeric(sheet.Size2);
     WriteNumeric(sheet.Thickness);
     WriteInt32(sheet.SomeInteger1);
     WriteInt32(sheet.SomeInteger2);
     WriteBytes(new Byte[] { 19, 0 });
     WriteInt32(sheet.SomeInteger3);
     WriteBytes(new Byte[] { 1, 0, 0 });
     WriteBytes(m_middlePad);
     WriteInt32(sheet.SomeInteger4);
     WriteBytes(new Byte[] { 1, 0, 1 });             // teil
 }
Esempio n. 2
0
 private void LoadSheet()
 {
     LC4Sheet sheet = new LC4Sheet();
     Byte[] pad;
     pad = m_fmt.ReadBytes(11);
     sheet.SomeString1 = m_fmt.ReadString();
     sheet.SomeString2 = m_fmt.ReadString();
     sheet.SomeString3 = m_fmt.ReadString();
     sheet.Size1 = m_fmt.ReadNumeric();
     sheet.Size2 = m_fmt.ReadNumeric();
     sheet.Thickness = m_fmt.ReadNumeric();
     sheet.SomeInteger1 = m_fmt.ReadInt32();
     sheet.SomeInteger2 = m_fmt.ReadInt32();
     pad = m_fmt.ReadBytes(2);
     sheet.SomeInteger3 = m_fmt.ReadInt32();
     pad = m_fmt.ReadBytes(10);
     sheet.SomeInteger4 = m_fmt.ReadInt32();
     pad = m_fmt.ReadBytes(3);
     m_document.Sheets.Add(sheet);
 }
Esempio n. 3
0
        private void LoadSheet()
        {
            LC4Sheet sheet = new LC4Sheet();

            Byte[] pad;
            pad = ReadBytes(11);
            sheet.SomeString1  = ReadString();
            sheet.SomeString2  = ReadString();
            sheet.SomeString3  = ReadString();
            sheet.Size1        = ReadNumeric();
            sheet.Size2        = ReadNumeric();
            sheet.Thickness    = ReadNumeric();
            sheet.SomeInteger1 = ReadInt32();
            sheet.SomeInteger2 = ReadInt32();
            pad = ReadBytes(2);
            sheet.SomeInteger3 = ReadInt32();
            pad = ReadBytes(10);
            sheet.SomeInteger4 = ReadInt32();
            pad = ReadBytes(3);
            m_document.Sheets.Add(sheet);
        }