Example #1
0
 private void populateTutorsAndLabInfo(Wrappers.TutorsAndLabInformation info)
 {
     StudentAmbassadorsTitle.Text       = info.title;
     StudentAmbassadorsDescription.Text = info.description;
     SATHrefLink.Content     = "Lab Hours";
     SATHrefLink.NavigateUri = new System.Uri(info.tutoringLabHoursLink);
 }
Example #2
0
        private async void populateRecoursesAsync(object sender)
        {
            HttpResponseMessage response = await client.GetAsync(API_RESOURCES);

            if (response.IsSuccessStatusCode)
            {
                resources = await response.Content.ReadAsAsync <Wrappers.Resources>();

                studyAbroad        = resources.studyAbroad;
                studentServices    = resources.studentServices;
                tutorsAndLabInfo   = resources.tutorsAndLabInformation;
                studentAmbassadors = resources.studentAmbassadors;

                MainHeader.Text              = resources.title;
                StudyAbroadTitle.Text        = studyAbroad.title;
                StudentServicesTitle.Text    = studentServices.title;
                TutorsAndLabInfoTitle.Text   = tutorsAndLabInfo.title;
                StudentAmbassadorsTitle.Text = studentAmbassadors.title;

                populateStudyAbroadSection(studyAbroad);
                populateStudentServicesSection(studentServices);
                populateTutorsAndLabInfo(tutorsAndLabInfo);
            }
        }