コード例 #1
0
        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"
                }
            });
        }
コード例 #2
0
        private async void People_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            DataPeopleHelper helper = new DataPeopleHelper("people.json");

            helper.WriteToFile(People);
        }