public static List <TrackViewModel> AlbumProcessList(DataGridControl lst) { var art = lst.SelectedItem as AlbumViewModel; List <TrackViewModel> tl = TrackQuery.GetTracksFromAlbum(art.Name).ToList(); return(tl); }
private void lst_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e) { var art = lst.SelectedItem as AlbumViewModel; if (art != null) { artist.Text = art.Name; duration.Text = " " + TimeSpan.FromSeconds(art.Duration); Album = art.Name; tracklist.ItemsSource = TrackQuery.GetTracksFromAlbum(art.Name); selArtist.FadeOut(); } }