Example #1
0
        protected override void ReadBody(XmlReader reader)
        {
            // This is duplicated from a Sequence, but that's to keep it independent.
            // Just because that changes doesn't mean this should.

            // Module data
            reader.ReadStartElement("ModuleData");
            ModuleDataSet.Deserialize(reader.ReadOuterXml());
            reader.ReadEndElement(); // ModuleData

            // Fixtures
            if(reader.ElementsExistWithin("Fixtures")) { // Container element for child entity
                FixtureReader fixtureReader = new FixtureReader();
                while(fixtureReader.Read(reader)) {
                    InsertFixture(fixtureReader.Fixture);
                }
                reader.ReadEndElement(); // Fixtures
            }
        }
Example #2
0
 protected override void ReadBody(XmlReader reader)
 {
     // Channels
     if(reader.ElementsExistWithin("Channels")) { // Container element for child entity
         ChannelReader<OutputChannel> channelReader = new ChannelReader<OutputChannel>();
         while(channelReader.Read(reader)) {
             InsertChannel(channelReader.Channel);
         }
         reader.ReadEndElement(); // Channels
     }
 }