public void Display(Lyric lyric) { lblAlbum.Text = lyric.OriginalMetadata.Album; lblArtist.Text = lyric.OriginalMetadata.Artist; lblTitle.Text = lyric.OriginalMetadata.Title; lblLyrics.Text = lyric.Text.Replace("\n","\r\n"); }
public override void DoDisplay(Lyric lyric) { if (_form.InvokeRequired) { _form.Invoke(new DisplayDelegate(DoDisplay), lyric); return; } _form.Display(lyric); }
public override void DoDisplay(Lyric lyric) { _nowPlaying.DisplayLyrics(lyric); }
private void DisplayLyrics(Lyric lyric) { Logger.Debug("Displaying lyrics"); if(_lastSong!=null&&lyric.OriginalMetadata.Title==_lastSong.Title) Application.Invoke(delegate { Lyrics.Buffer.Text = lyric.Text.Replace("\n", "\r\n"); }); }