Exemple #1
0
 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);
 }
Exemple #3
0
 public override void DoDisplay(Lyric lyric)
 {
     _nowPlaying.DisplayLyrics(lyric);
 }
Exemple #4
0
 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");
     });
 }