Esempio n. 1
0
        public XElement ToXML()
        {
            var chapterXML = new XElement("Chapter");

            chapterXML.Add(AudioPath.ToXML());
            chapterXML.Add(Metadata.ToXML());

            return(chapterXML);
        }
Esempio n. 2
0
        public object Clone()
        {
            Chapter copy = new Chapter();

            copy.Metadata = (ChapterMetadata)Metadata.Clone();

            copy.AudioPath = (AudioPath)AudioPath.Clone();

            return(copy);
        }
Esempio n. 3
0
        public object Clone()
        {
            AudioPath copy = new AudioPath();

            copy.EndMark   = EndMark;
            copy.StartMark = StartMark;
            copy.Path      = Path;

            return(copy);
        }
Esempio n. 4
0
        public void FromXML(XElement xmlElement)
        {
            AudioPath.FromXML(xmlElement);

            Metadata.FromXML(xmlElement);
        }
Esempio n. 5
0
 internal Chapter()
 {
     Metadata  = new ChapterMetadata();
     AudioPath = new AudioPath();
 }
Esempio n. 6
0
 /// <summary>
 /// Creates a chapter off a single audio file and initializes
 /// the metadata with the track's metadata.
 /// </summary>
 /// <param name="track">Track to reference</param>
 internal Chapter(Track track)
 {
     AudioPath = new AudioPath(track.Path);
     Metadata  = new ChapterMetadata(track);
 }