public static ObservableCollection <Song> GetSongs() { JsonFileService js = new JsonFileService(); ObservableCollection <Song> songs = new ObservableCollection <Song>(); songs = js.Open("data.json"); return(songs); }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { JsonFileService js = new JsonFileService(); js.Save("data.json", s.Songs); }