示例#1
0
 public void Display(AlbumArt art)
 {
     try
     {
         pbAlbumArt.Image = new Bitmap(new MemoryStream(art.ImageData));
     }
     catch { }
 }
示例#2
0
 public override void DoDisplay(AlbumArt albumArt)
 {
     if (_form.InvokeRequired)
     {
         _form.Invoke(new DisplayArtDelegate(DoDisplay), albumArt);
         return;
     }
     _form.Display(albumArt);
 }
示例#3
0
 public override void DoDisplay(AlbumArt albumArt)
 {
     _nowPlaying.DisplayAlbumArt(albumArt);
 }
示例#4
0
 private void DisplayAlbumArt(AlbumArt albumArt)
 {
     Logger.Debug("Displaying album art");
     if (_lastSong != null && albumArt.OriginalMetadata.Title == _lastSong.Title)
         Application.Invoke(delegate
     {
         lastArt = albumArt != null ? albumArt.ImageData : null;
         var size = Art.Allocation;
         DisplayAlbumArt(size.Width, size.Height);
     });
 }