public async void Init(NetEasePlaylist netEasePlaylist) { if ((netEasePlaylist != null) && !string.IsNullOrEmpty(netEasePlaylist.Id) && netEasePlaylist.IsRealPl) { this.currentItem = new SongListInitItem() { ItemType = SongListEnum.NeteasePl, Item = netEasePlaylist }; this.isPlaylist = true; this.playlistName = netEasePlaylist.Name; this.IsBusy = true; this.PicUrl = netEasePlaylist.PicUrl; var tempSongs = await this.netEase.GetNetEasePlaylistSongs(netEasePlaylist.Id); this.Songs = new ObservableCollection <ItemWrap>(); if (tempSongs != null) { foreach (var item in tempSongs) { this.Songs.Add(new ItemWrap(item, this)); } } else { this.dialog.ShowAlert(Texts.ErrorGettingNeteasePL, 5000); } this.IsBusy = false; this.RaisePropertyChanged(() => this.TitleView); } }
private void SelectPlaylistHandler(NetEasePlaylist item) { this.ShowViewModel <ListSongViewModel>(item); }