Example #1
0
        //Refresh the list with the items in the local database
        public async Task RefreshItemsFromTableAsync()
        {
            try {
                // Get the items that weren't marked as completed and add them in the adapter
                var list = await promptstepTable.Where(promptstep => promptstep.Complete == false).ToListAsync();

                adapter.Clear();

                foreach (PromptStep current in list)
                {
                    adapter.Add(current);
                }
            } catch (Exception e) {
                CreateAndShowDialog(e, "Error");
            }
        }