Exemple #1
0
 protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     string name = NavigationContext.QueryString["name"];
     string info = NavigationContext.QueryString["info"];
     info = "http://nhaccuatui.com/" + info;
     ArtistViewModel Artist = new ArtistViewModel(new Artist() { Name = name, Info = info });
     await Artist.LoadDataInitAsync();
     App.ArtistVM.Coppy(Artist);
     albumslls.ScrollTo(App.ArtistVM.AlbumList.First());
     songsView.ScrollTo(App.ArtistVM.TrackList.First());
 }
Exemple #2
0
 public void Coppy(ArtistViewModel artistVM)
 {
     Name       = artistVM.Name;
     ArtistInfo = artistVM.ArtistInfo;
     Cover      = artistVM.Cover;
     BgImage    = artistVM.BgImage;
     AlbumList.Clear();
     TrackList.Clear();
     foreach (var album in artistVM.AlbumList)
     {
         AlbumList.Add(album);
     }
     foreach (var track in artistVM.TrackList)
     {
         TrackList.Add(track);
     }
     trackPage = artistVM.trackPage;
     albumPage = artistVM.albumPage;
 }
Exemple #3
0
 public void Coppy(ArtistViewModel artistVM)
 {
     Name = artistVM.Name;
     ArtistInfo = artistVM.ArtistInfo;
     Cover = artistVM.Cover;
     BgImage = artistVM.BgImage;
     AlbumList.Clear();
     TrackList.Clear();
     foreach (var album in artistVM.AlbumList)
         AlbumList.Add(album);
     foreach (var track in artistVM.TrackList)
         TrackList.Add(track);
     trackPage = artistVM.trackPage;
     albumPage = artistVM.albumPage;
 }