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); } }
private void Window_Closed(object sender, EventArgs e) { PlaylistsPage.GetInstance().ClosePlaylistAdd(); SystemState.Serialize(); PlaylistLibrary.Serialize(); }
private void InitializeSystem() { SystemState.Deserialize(); Library.Update(SystemState.Instance.LibraryPath); PlaylistLibrary.Deserialize(); }