private void Create_PlaylistClick(object sender, RoutedEventArgs e) { var window = new CreatePlaylist(); window.GameContainer = picker; window.ShowDialog(); if (window.newList != null) { gamesLists.Lists.Add(window.newList); } playlistBox.ItemsSource = playlistDictionary; }
private void Create_PlaylistClick(object sender, RoutedEventArgs e) { var window = new CreatePlaylist { GameContainer = picker }; window.ShowDialog(); if (window.newList != null) { gamesLists.CustomPlaylists.Add(window.newList); } playlistBox.ItemsSource = AllPlaylists; }