private void ButtonEdit_Click(object sender, RoutedEventArgs e) { if (cm.SelectedTrack != "") { var track = cm.SelectedTrack; var album = cm.GetTrackAlbum(track); var artists = cm.ListToString(cm.RetrieveTrackArtistNames(track)); var td = new TrackDialog(track, album, artists, cm.GetDiscNumber(track), cm.GetTotalDiscs(album), cm.GetTrackNumber(track), cm.GetTotalTracks(album), cm.GetTrackGenre(track), cm.GetAlbumYear(album)); td.Show(); } else if (cm.SelectedAlbum != "") { var album = cm.SelectedAlbum; var ad = new AlbumDialog(album, cm.GetAlbumYear(album), cm.GetTotalDiscs(album), cm.GetTotalTracks(album)); ad.Show(); } else if (cm.SelectedArtist != "") { var artist = cm.SelectedArtist; var ad = new ArtistDialog(artist); ad.Show(); } }
private void ButtonAdd_Click(object sender, RoutedEventArgs e) { var td = new TrackDialog(); td.Show(); }