Exemplo n.º 1
0
        public static ObservableCollection <Song> GetSongs()
        {
            JsonFileService             js    = new JsonFileService();
            ObservableCollection <Song> songs = new ObservableCollection <Song>();

            songs = js.Open("data.json");

            return(songs);
        }
Exemplo n.º 2
0
        private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            JsonFileService js = new JsonFileService();

            js.Save("data.json", s.Songs);
        }