public AddRemoveActionButtonsView()
        {
            InitializeComponent();

            btAddNew.Click += (o, e) => AddNewClick?.Invoke();
            btRemove.Click += (o, e) => RemoveClick?.Invoke();
        }
Exemplo n.º 2
0
        private void SearchForNewSongsPlaylist_Click(object sender, RoutedEventArgs e)
        {
            IPlaylist playlist = (IPlaylist)((FrameworkElement)sender).DataContext;

            AddNewClick?.Invoke(this, new PlaylistActionEventArgs(playlist));
        }