Esempio n. 1
0
 public async Task Load()
 {
     try
     {
         await get.LoadFromJson();
     }
     catch (Exception e)
     {
         string error = e.Message;
     }
 }
Esempio n. 2
0
        public async Task LoadMembers()
        {
            try
            {
                await getMembers.LoadFromJson();

                MemberCatalog = getMembers.ItemsCatalog;
            }
            catch (Exception e)
            {
                string error = e.Message;
            }
        }
Esempio n. 3
0
 //Loading method
 public async void LoadCustomers()                                        //serialization
 {
     try
     {
         CustomersCatalogVm = await _getMembers.LoadFromJson();
     }
     catch (Exception e)
     {
         foreach (Customer customer in CustomersCatalogVm)
         {
             var drink = customer;
         }
         string error = e.Message;
     }
 }