public void read(EndianBinaryReader r)
 {
     Count = r.ReadInt32();
     Events = new Event[Count]; for (int i = 0; i < Count; i++) { var obj = new Event(); obj.read(r); Events[i] = obj; }
 }
        private void parseEvents(Song2014 xml, Sng2014File sng)
        {
            sng.Events = new EventSection();
            sng.Events.Count = xml.Events.Length;
            sng.Events.Events = new Event[sng.Events.Count];

            for (int i = 0; i < sng.Events.Count; i++)
            {
                var evnt = xml.Events[i];
                var e = new Event();
                e.Time = evnt.Time;
                readString(evnt.Code, e.EventName);
                sng.Events.Events[i] = e;
            }
        }
 public void read(BinaryReader r)
 {
     this.Count = r.ReadInt32();
     this.Events = new Event[this.Count]; for (int i=0; i<this.Count; i++) { Event obj = new Event(); obj.read(r); this.Events[i] = obj; }
 }