Пример #1
0
 /// <summary>
 ///     Start playing selected song
 /// </summary>
 /// <param name="song"></param>
 private async void OpenSong(Song song)
 {
     if (CurrentSong != null) CurrentSong.IsPlaying = false;
     CurrentSong = song;
     CurrentSong.IsPlaying = true;
     ChangePlaybackState(MediaState.Play);
     AlbumArt = await ImageHelper.GetAlbumArtAsync(song.FilePath);
 }
Пример #2
0
 public async void Initialize(Song song)
 {
     Lyrics = await song.GetLyricsAsync();
 }
Пример #3
0
 public void Initialize(Song song)
 {
     IsEnabled = true;
     RemoveImageCommand = new RelayCommand(RemoveImage, () => Image != null);
     Song = song;
     LoadAlbumArt();
 }
Пример #4
0
 public void UpdateSong(Song song)
 {
 }