Ejemplo n.º 1
0
 public void SetTrack(Track track)
 {
     const string separator = " - ";
     this.descriptionLabel.Text = track.Artist + separator + track.Title;
     this.descriptionLabel.Links.Add(0, track.Artist.Length, track.LastFmArtistUrl());
     this.descriptionLabel.Links.Add(track.Artist.Length + separator.Length, track.Title.Length, track.LastFmTitleUrl());
     this.descriptionLabel.LinkClicked += ((sender, e) => Process.Start((string)e.Link.LinkData));
     this.descriptionLabel.MouseDown -= CloseOnMouseDown;
 }