Beispiel #1
0
        internal void loadPrevState()
        {
            currentStateIndx = currentStateIndx + 1 > states.Count - 1 ? currentStateIndx : currentStateIndx + 1;
            PlaylistSerializer temp = states[currentStateIndx];

            Tracks = temp.playList.listToObservable();
        }
Beispiel #2
0
        internal void loadNextState()
        {
            currentStateIndx = currentStateIndx - 1 < 0 ? 0 : currentStateIndx - 1;
            PlaylistSerializer temp = states[currentStateIndx];

            Tracks = temp.playList.listToObservable();
        }
Beispiel #3
0
        /// <summary>
        /// Write playlist to XML file.
        /// </summary>
        ///  See <see cref="LastDitchPlayer.Playlists.PlaylistSerializer.Serialize(string)"/>
        public void serializePlaylist()
        {
            PlaylistSerializer state = currentState ?? new PlaylistSerializer(Tracks.listifyObservableTracks(), this.Name);

            state.Serialize(Name);
        }