private async void Place_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { DataPeopleHelper placeHelper = new DataPeopleHelper("places.json"); placeHelper.WriteToFile(new ObservableCollection <Place>() { new Place() { Name = "Karlstad" } }); }
private async void People_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { DataPeopleHelper helper = new DataPeopleHelper("people.json"); helper.WriteToFile(People); }