Пример #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);
        }