/// <summary> /// Triggers the <see cref="ArtistClicked"/> event. /// </summary> public void Clicked() { ArtistClicked?.Invoke(_fetchedArtist, EventArgs.Empty); }
private void TextBlock_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { ArtistClicked?.Invoke(((TextBlock)sender).Text); e.Handled = true; }
/// <summary> /// Triggers when an artist was clicked. /// Fires the <see cref="ArtistClicked"/> event. /// </summary> /// <param name="sender">The clicked artist.</param> /// <param name="e">Ignored.</param> private void Artist_Clicked(object sender, EventArgs e) { ArtistClicked?.Invoke(sender, e); }