Example #1
0
        public async Task CheckPromptStep(PromptStep promptstep)
        {
            if (client == null)
            {
                return;
            }

            // Set the item as completed and update it in the table
            promptstep.Complete = true;
            try {
                await promptstepTable.UpdateAsync(promptstep); // update the new item in the local database
                await SyncAsync();                             // send changes to the mobile service

                if (promptstep.Complete)
                {
                    adapter.Remove(promptstep);
                }
            } catch (Exception e) {
                CreateAndShowDialog(e, "Error");
            }
        }