// 读取饼图数据列表 public async Task <bool> LoadFromFile() { try { data = await StorageFileHelper.ReadAsync <ObservableCollection <PieChartDataItem> >(FILE_PIE_NAME); } catch (Exception e) { System.Diagnostics.Debug.WriteLine(e.Message); } return(data != null); }
// 读取日常列表 public async Task <bool> LoadFromFile() { _data = await StorageFileHelper.ReadAsync <List <Daily> >("Daily.dat"); return(_data != null); }
// 读取事项列表 public async Task <bool> LoadFromFile() { _data = await StorageFileHelper.ReadAsync <ObservableCollection <EventListViewItem> >("Event.dat"); return(_data != null); }