private void playsList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var listbox = (ListBox)sender;

            if (listbox.SelectedIndex != -1)
            {
                PlaySelected?.Invoke(this, (string)((PathName)listbox.SelectedItem).ItemPath);
            }
        }
Exemplo n.º 2
0
 private void NotifyCanExecuteChanged()
 {
     PlaySelected.NotifyCanExecuteChanged();
     SelectAll.NotifyCanExecuteChanged();
     StopSelected.NotifyCanExecuteChanged();
     DeleteSelected.NotifyCanExecuteChanged();
     ClearSelection.NotifyCanExecuteChanged();
     RemoveFinished.NotifyCanExecuteChanged();
 }
Exemplo n.º 3
0
 private void playButton_Click(object sender, RoutedEventArgs e)
 {
     PlaySelected?.Invoke(this, null);
 }