public void showViaToast(ToastForm myForm, String track, String artist) { myForm.setArtist(artist); myForm.setTrack(track); myForm.setAlbum(""); myForm.setAlbumImage(spotifytoaster.Properties.Resources.album_missing); // Attempt to load additional information about the track if (albumInfo.loadAlbumInfo(artist, track)) { // Set Album Title if we have one if (null != albumInfo.getAlbumTitle()) { myForm.setAlbum(albumInfo.getAlbumTitle()); } // Set Album Image URL if we have one if (null != albumInfo.getAlbumImageURL()) { myForm.setAlbumImageUrl(albumInfo.getAlbumImageURL()); } // Add Track Number to the title if we have one if (null != albumInfo.getTrackNumber()) { myForm.setTrack(albumInfo.getTrackNumber() + ". " + track); } } myForm.Show(); }