Пример #1
0
        //public Playlist PlayedSongs { get; private set; }
        public PlaylistService(IRequestService requestService)
        {
            _publisher = Publisher.Instance;
            _publisher.SubscribeToMessages(this, "SignIn", "SighOut");

            _requestService = requestService;
            PlaylistsChanged = false;

            //PlayedSongs = new Playlist(-1, PlayedSongsName, new List<Song>());
            CurrentPlaylist = new Playlist(-1, CurrentPlaylistName, new List<Song>());

            //_playlists = new List<Playlist> { PlayedSongs };
            _playlists = new List<Playlist>();
            Playlists = new ListCollectionView(_playlists);
            //Playlists.CurrentChanged += PlaylistSelected;
        }