public Set() { xmlSetSongCollection = new XmlSetSongCollection(); indexOfCurrentSong = -1; songSetSize = 0; changeMade = false; }
public void saveSet() { if (this.setName != "" && changeMade == true) { xmlSetSongCollection = new XmlSetSongCollection(songList); XmlReaderWriter.writeSet(Settings.GlobalApplicationSettings.SetsFolder + this.setName, this); changeMade = false; } }
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; }