Example #1
0
        public FailedTestViewModel(Page page, Test item = null)
        {
            Page       = page;
            Title      = item?.ShortName;
            TestObject = item;

            YesNo = new MCQuestionData
            {
                Title = "Eligible to retest?",
                Items = new List <MCItem> {
                    new MCItem("Yes"),
                    new MCItem("No")
                }
            };

            CompleteTestCommand = new Command(async() => await ExecuteCompleteTestCommand());


            MoreInfo = new LongQuestionData
            {
                Title = "Please provide more info"
            };
        }
Example #2
0
        public TestFrontPageViewModel(Page page, Test item = null)
        {
            Page            = page;
            Title           = item?.ShortName;
            TestObject      = item;
            ContinueCommand = new Command(async() => await ExecuteContinueCommand());

            HandlerName = new ShortQuestionData
            {
                Title = "Handler Name"
            };

            CanineName = new ShortQuestionData
            {
                Title = "Canine Name"
            };

            ScoringExaminer = new ShortQuestionData
            {
                Title = "Scoring Examiner"
            };

            HandsOnExaminer = new ShortQuestionData
            {
                Title = "Hands-On Examiner"
            };

            Date = new ShortQuestionData
            {
                Title = "Date"
            };

            OtherRestrictions = new LongQuestionData
            {
                Title = "Other Restrictions"
            };

            CertificationQuestion = new MCQuestionData
            {
                Title = "Type of Certification",
                Items = new List <MCItem>()
                {
                    new MCItem("New adult certification"),
                    new MCItem("Junior handler certification (under 18 yrs of age)"),
                    new MCItem("Adult recertification"),
                    new MCItem("Puppy-to-adult dog certification")
                }
            };

            CanineEquipmentQuestion = new MCQuestionData
            {
                Title = "Canine Equipment Restriction",
                Items = new List <MCItem>()
                {
                    new MCItem("Flat Collar"),
                    new MCItem("Harness (any type)"),
                    new MCItem("Head Halter"),
                    new MCItem("Martingale Collar")
                }
            };

            PracticeLabQuestion = new MCQuestionData
            {
                Title = "Practice Lab Requirement",
                Items = new List <MCItem>()
                {
                    new MCItem("Yes"),
                    new MCItem("No")
                }
            };


            ShadowVisitQuestion = new MCQuestionData
            {
                Title = "*Shadow Visit Requirement (*Oregon)",
                Items = new List <MCItem>()
                {
                    new MCItem("Both shadows"),
                    new MCItem("Second Shadow only"),
                    new MCItem("NA")
                }
            };
        }