Exemplo n.º 1
0
        public Set()
        {
            xmlSetSongCollection = new XmlSetSongCollection();
            indexOfCurrentSong   = -1;
            songSetSize          = 0;

            changeMade = false;
        }
Exemplo n.º 2
0
 public void saveSet()
 {
     if (this.setName != "" && changeMade == true)
     {
         xmlSetSongCollection = new XmlSetSongCollection(songList);
         XmlReaderWriter.writeSet(Settings.GlobalApplicationSettings.SetsFolder + this.setName, this);
         changeMade = false;
     }
 }
Exemplo n.º 3
0
        public void revertSet()
        {
            var set = Set.loadSet(this.setName);

            this.setName              = set.setName;
            this.changeMade           = false;
            this.songSetSize          = set.songSetSize;
            this.songList             = set.songList;
            this.xmlSetSongCollection = set.xmlSetSongCollection;
        }