/// <summary>
 /// Initializes a new instance of the <see cref="CaaPa.PromptStep"/> class.
 /// </summary>
 /// <param name="stepId">stepId .</param>
 /// <param name="promptId">promptId .</param>
 /// <param name="stepName">stepName .</param>
 /// <param name="steDesc">steDesc .</param>
 /// <param name="stepImageURI">stepImageURI .</param>
 /// <param name="stepMediaURI">userMediaURI .</param>
 public PromptStepWrapper(PromptStep promptstep)
 {
     PromptStep = promptstep;
 }
        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");
            }
        }
        public async void AddPromptStep(View view) {
      
            if (client == null || string.IsNullOrWhiteSpace (textNewToDo.Text)) {
                return;
            }

            // Create a new item
            var promptstep = new PromptStep
            {
                //Text = textNewToDo.Text

                //add collum = value
                //for each collumn
                //leave complete it is nessecary for the localdb

                Complete = false
            };

            try {
                await promptstepTable.InsertAsync(promptstep); // insert the new item into the local database
                await SyncAsync(); // send changes to the mobile service

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

            //textNewToDo.Text = "";
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CaaPa.PromptStep"/> class.
 /// </summary>
 /// <param name="stepId">stepId .</param>
 /// <param name="promptId">promptId .</param>
 /// <param name="stepName">stepName .</param>
 /// <param name="steDesc">steDesc .</param>
 /// <param name="stepImageURI">stepImageURI .</param>
 /// <param name="stepMediaURI">userMediaURI .</param>
 public PromptStepWrapper(PromptStep promptstep)
 {
     PromptStep = promptstep;
 }