public AddRemoveActionButtonsView() { InitializeComponent(); btAddNew.Click += (o, e) => AddNewClick?.Invoke(); btRemove.Click += (o, e) => RemoveClick?.Invoke(); }
private void SearchForNewSongsPlaylist_Click(object sender, RoutedEventArgs e) { IPlaylist playlist = (IPlaylist)((FrameworkElement)sender).DataContext; AddNewClick?.Invoke(this, new PlaylistActionEventArgs(playlist)); }