async void RegistedStep(int i, bool status, bool isVisible)
 {
     items[i].isGreenCheckMarkIconVisible = isVisible;
     items[i].IsComplete = status;
     items[i].updateisGreenCheckMarkIconVisible();
     await RdsConnect.updateInstruction(status, items[i]);
 }
Example #2
0
        async void TapGestureRecognizer_Tapped(System.Object sender, System.EventArgs e)
        {
            foreach (int i in processedSteps)
            {
                await RdsConnect.updateInstruction(true, items[i]);
            }

            //foreach (Instruction i in parent.instructions)
            //{
            //    await RdsConnect.updateInstruction(true, i);
            //}
            if (processedSteps.Count != 0)
            {
                if (processedSteps.Count == parent.instructions.Count)
                {
                    parentIsComplete();
                }
                else
                {
                    if (parent.IsComplete != true)
                    {
                        parentIsComplete();
                    }
                }
            }

            await Navigation.PopAsync(false);
        }
Example #3
0
        async void userDone(System.Object sender, System.EventArgs e)
        {
            // cases if it all steps are done, if none are done, if some are done
            if (parent.IsComplete != true)
            {
                foreach (Instruction steps in items)
                {
                    await RdsConnect.updateInstruction(true, steps);
                }
                parentIsComplete();
            }

            //parentIsComplete();

            //if (processedSteps.Count != 0)
            //{
            //    if (processedSteps.Count == parent.instructions.Count)
            //    {
            //        parentIsComplete();
            //    }
            //    else
            //    {
            //        parentIsInProgress();
            //    }
            //}

            //foreach (int i in processedSteps)
            //{
            //    await RdsConnect.updateInstruction(true, items[i]);
            //}


            //if (processedSteps.Count == parent.instructions.Count)
            //{
            //    foreach (Instruction i in parent.instructions)
            //    {
            //        await RdsConnect.updateInstruction(true, i);
            //    }
            //    parentIsComplete();
            //}
            //else
            //{
            //    foreach (Instruction i in parent.instructions)
            //    {
            //        await RdsConnect.updateInstruction(true, i);
            //    }
            //    parentIsInProgress();
            //}

            await Navigation.PopAsync(false);
        }
Example #4
0
 async void RegistedStep(int i, bool status, string newImage, Instruction step)
 {
     items[i].PhotoUpdate = newImage;
     items[i].IsComplete  = true;
     await RdsConnect.updateInstruction(status, step);
 }