Example #1
0
        public void SetSelectedQuestion(Question question)
        {
            this.CurrentPage = this.Children.Single(p => ((PartPage)p).GetPart().Id == question.part.Id);
            PartPage partPage = (PartPage)this.CurrentPage;

            partPage.CurrentPage = partPage.Children.Single(q => ((QuestionPage)q).question.Id == question.Id);
        }
Example #2
0
        public void SetSelectedQuestion(Question question)
        {
            this.CurrentPage = this.Children.Single(p => ((PartPage)p).GetPart().Id == question.part.Id);
            PartPage    partPage     = (PartPage)this.CurrentPage;
            ContentPage questionPage = partPage.Children.Single(q => ((QuestionPage)q).question.Id == question.Id);

            (questionPage as QuestionPage).Initialize();
            partPage.CurrentPage = questionPage;
        }
Example #3
0
 public void Initialize()
 {
     if (!initialized)
     {
         initialized = true;
         foreach (SectionPart part in section.SectionParts)
         {
             PartPage page = new PartPage(part, inspection, this);
             Children.Add(page);
         }
     }
 }