/// <summary>
 /// Loads the Question.
 /// </summary>
 /// <param name="label">Label.</param>
 private void LoadData(Label label)
 {
     _canLoadNext = true;
     _canGoBack   = true;
     _tapLocked   = false;
     CommonPropertySetter.SetQuestionLabelText(label, _Questions.QDesc);
 }
 /// <summary>
 /// Loads the question.
 /// </summary>
 /// <param name="label">Question Label.</param>
 private void LoadData(Label label)
 {
     CommonPropertySetter.SetQuestionLabelText(label, _Questions.QDesc);
 }
 /// <summary>
 /// Sets the message text.
 /// </summary>
 /// <param name="label">Label.</param>
 private void SetMessageText(Label label)
 {
     _messageLabel = label;
     CommonPropertySetter.SetMessageLabelText(label, _Questions.Optional);
 }
        async Task OptionTapped(MultiOpsLabelModel multiOpsModel)
        {
            try
            {
                //set message
                _messageLabel.Text = "Please Tap on Next button to continue";

                //_selectedValue = multiOpsModel.ID;
                //Console.WriteLine("tapped :" + _selectedValue);
                if (!_tapLocked)
                {
                    _tapLocked = true;

                    int iconSeq = 0;

                    foreach (var item in MultiSelectionsLabelList)
                    {
                        if (item.Id == multiOpsModel.OptionLabel.Id)
                        {
                            if (item.BackgroundColor == Color.FromRgb(60, 0, 70))
                            {
                                item.BackgroundColor = Color.Purple;
                                MultiSelectionsImageList[iconSeq].Source = ImageSource.FromFile("Images/checked.png");
                            }
                            else
                            {
                                item.BackgroundColor = Color.FromRgb(60, 0, 70);
                                MultiSelectionsImageList[iconSeq].Source = ImageSource.FromFile("Images/unchecked.png");
                            }
                        }
                        iconSeq++;
                    }

                    await multiOpsModel.OptionLabel.ScaleTo(2, 150);

                    await multiOpsModel.OptionLabel.ScaleTo(1, 150);

                    string[] selectedOptionsArray = new string[MultiSelectionsLabelList.Count];

                    int x    = 0;
                    int loop = 0;
                    foreach (var item in MultiSelectionsLabelList)
                    {
                        if (item.BackgroundColor == Color.Purple)
                        {
                            selectedOptionsArray[loop] = x.ToString();
                            loop++;
                        }

                        x++;
                    }

                    _selectedValue = null;

                    if (string.IsNullOrEmpty(selectedOptionsArray[0]))
                    {
                        //set message
                        CommonPropertySetter.SetMessageLabelText(_messageLabel, _Questions.Optional);
                    }

                    foreach (var item in selectedOptionsArray)
                    {
                        if (!string.IsNullOrEmpty(item))
                        {
                            if (string.IsNullOrEmpty(_selectedValue))
                            {
                                _selectedValue = item;
                            }
                            else
                            {
                                _selectedValue += "," + item;
                            }
                        }
                    }
                }
                _tapLocked = false;
            }
            catch (Exception)
            {
            }
        }