Esempio n. 1
0
        public async void NavigateandRelaodQuestions(string domain)
        {
            var navigationHeaader = new ItemNavigationHeaderData();
            var selectedDomain    = TestSessionRecords.Where(p => !string.IsNullOrEmpty(p.DomainCode)).FirstOrDefault(p => p.DomainCode == domain);

            navigationHeaader.HeaderColor = Color.FromHex("#5c2d91");
            if (selectedDomain != null)
            {
                if (selectedDomain.ParentDomainCode.ToUpper() == "ADP")
                {
                    navigationHeaader.HeaderColor = Color.FromHex("#D73648");
                }
                else if (selectedDomain.ParentDomainCode.ToUpper() == "MOT")
                {
                    navigationHeaader.HeaderColor = Color.FromHex("#0066AD");
                }
                else if (selectedDomain.ParentDomainCode.ToUpper() == "COM")
                {
                    navigationHeaader.HeaderColor = Color.FromHex("#5C2D91");
                }
                else if (selectedDomain.ParentDomainCode.ToUpper() == "SE")
                {
                    navigationHeaader.HeaderColor = Color.FromHex("#008550");
                }
                else if (selectedDomain.ParentDomainCode.ToUpper() == "COG")
                {
                    navigationHeaader.HeaderColor = Color.FromHex("#CC4B00");
                }
                else if (selectedDomain.ParentDomainCode == "Academic")
                {
                    // TODO : Need to check for the Academic Domain Because at this time it is not coming from the API 06/01/2020
                    navigationHeaader.HeaderColor = Color.FromHex("#BFD730");
                }
            }
            if (selectedDomain != null)
            {
                navigationHeaader.ContentCategoryId = selectedDomain.ContentCategoryId;
                navigationHeaader.TestDate          = selectedDomain.TestDate;
                navigationHeaader.Title             = selectedDomain.Domain + " (" + domain + ")";
                navigationHeaader.TestDate          = selectedDomain.TestDate;
            }
            await SaveTestSessionOverView();

            MessagingCenter.Send <ItemNavigationHeaderData>(navigationHeaader, "Administrationpage");
        }
Esempio n. 2
0
 public virtual void UpdateSelectedExaminer(string selectedText)
 {
     IsOverviewChanged = true;
     TestSessionRecords.Where(p => p.DomainCode == SelectedItemDomainCode).FirstOrDefault().Examiner   = selectedText;
     TestSessionRecords.Where(p => p.DomainCode == SelectedItemDomainCode).FirstOrDefault().ExaminerID = Convert.ToInt32(ExaminerList.FirstOrDefault(p => p.text == selectedText)?.id);
 }