private void DeletePlaylist(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (listPlaylists.SelectedItem != null)
     {
         Playlist p = (Playlist)(listPlaylists.SelectedItem);
         MainWindow.GetInstance().SetProperFavState(p);
         PlaylistLibrary.RemoveList(p);
     }
 }
Ejemplo n.º 2
0
 private void Window_Closed(object sender, EventArgs e)
 {
     PlaylistsPage.GetInstance().ClosePlaylistAdd();
     SystemState.Serialize();
     PlaylistLibrary.Serialize();
 }
Ejemplo n.º 3
0
 private void InitializeSystem()
 {
     SystemState.Deserialize();
     Library.Update(SystemState.Instance.LibraryPath);
     PlaylistLibrary.Deserialize();
 }