/* Refresh the menus, pulling off of the remote db. */ /* There needs to be something that indicates to the user */ /* that the page is being refreshed like in a swipe refresh layout */ public async Task RefreshMenusAsync() { try { /* Initialize the localDb if not already present and sync */ await Database.SyncAsync(pullData : true); /* Get all the items for the dining facilities */ FourWindsItems = await Database.GetFourWindsItemsAsync(); /* Format the dining menus for the separate views */ GetDiningMenus(); } catch (Exception ex) { Debug.WriteLine("An error occurred in retrieving the menus:"); Debug.WriteLine($"{ex.Message} in {ex.Source}"); } }