Exemplo n.º 1
0
        /* Check For Navigation Source */
        private Models.Doctor GetDoctor()
        {
            Models.Doctor doctor = new Models.Doctor();

            if (CurrentIllness.getDoctorName() != null || DocByCategory.getDoctorName() != null)
            {
                switch (MainPage.getPageNavSource())
                {
                case 0:
                    doctor = MainPage.getDoctorName();
                    break;

                case 1:
                    doctor = CurrentIllness.getDoctorName();
                    break;

                case 2:
                    doctor = DocByCategory.getDoctorName();
                    break;
                }
            }
            else
            {
                doctor = MainPage.getDoctorName();
            }

            return(doctor);
        }
        /* Navigate to Doctor Page */
        private void DoctorsByCategory_ItemClick(object sender, ItemClickEventArgs e)
        {
            doctor     = (Models.Doctor)e.ClickedItem;
            doctorName = doctor.doctor_prof_name;

            MainPage.setPageNavSource(2);

            this.Frame.Navigate(typeof(DoctorPage));
        }
Exemplo n.º 3
0
        /* Store Clicked Item Data and navigate to DoctorPage */
        private void DoctorList_ItemClick(object sender, ItemClickEventArgs e)
        {
            doctor     = (Models.Doctor)e.ClickedItem;
            doctorName = doctor.doctor_prof_name;

            mainPageSource = true;
            pageNavSource  = 0;


            this.Frame.Navigate(typeof(DoctorPage));
        }