예제 #1
0
 public SongViewModel(SongViewModel songViewModel)
 {
     _song = songViewModel._song;
     _title = songViewModel.Title;
     _artist = songViewModel.Artist;
     _album = songViewModel.Album;
 }
예제 #2
0
        public void GetSelectedSong(SongViewModel s)
        {
            if (_currentPlayer != null)
            {
                if (IsPlaying)
                {
                    CurrentSong.IsPlaying = false;
                    _currentPlayer.Stop();
                }
            }

            _currentPlayer = null;
            var songID = _playlist.IndexOf(s);
            _currentSongID = songID;
            PlaySong(null);
        }