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 playButton_Click(object sender, RoutedEventArgs e)
 {
     PlaySelected?.Invoke(this, null);
 }