예제 #1
0
        private async void LoadCustomer()
        {
            var reader = new StorageFileReader(Ioc.Resolve<IEncryptionService>(), Ioc.Resolve<ISerializer>());

            //Customer = await reader.LoadDataAsync<Customer>("customer.json");
            Customer = await reader.LoadDataAsync<Customer>("customer.json.enc");
        }
예제 #2
0
 private async void LoadAction()
 {
     try
     {
         var reader = new StorageFileReader(CurrentEncryptionService, _serializer);
         Customer = await reader.LoadDataAsync<Customer>(Filename);
     }
     catch (FileNotFoundException)
     {
         // file not found.
     }
 }