// stops the timer on the summary page if the user decides to go back for some reason
 private void ContentFrame_Navigating(object sender, NavigatingCancelEventArgs e)
 {
     if (e.NavigationMode == NavigationMode.Back)
     {
         SummaryPage.StopTimer();
     }
 }
        /// <summary>
        /// Creates all pages required for submitting a walk-in ticket.
        /// </summary>
        private void CreatePages()
        {
            m_StudentId_Page = new StudentIDPage();
            m_StudentId_Page.PageFinished += PageFinished;

            m_Appointment_Page = new AppointmentPage();
            m_Appointment_Page.PageFinished += PageFinished;

            m_AppointmentProblem_Page = new AppointmentProblemPage();
            m_AppointmentProblem_Page.PageFinished += PageFinished;

            m_WiProblemPage = new ProblemPage();
            m_WiProblemPage.PageFinished += PageFinished;

            m_WiSummaryPage = new SummaryPage();
            m_WiSummaryPage.PageFinished += PageFinished;
        }
        private void CreatePages()
        {
            _student_id_page = new StudentIDPage();
            _student_id_page.PageFinished += _page_PageFinished;

            _appt_page = new AppointmentPage();
            _appt_page.PageFinished += _page_PageFinished;

            _appt_prob_page = new AppointmentProblemPage();
            _appt_prob_page.PageFinished += _page_PageFinished;

            _problem_page = new ProblemPage();
            _problem_page.PageFinished += _page_PageFinished;

            _summary_page = new SummaryPage();
            _summary_page.PageFinished += _summary_page_PageFinished;
        }
 /// <summary>
 /// Changes page when user clicks 'next' on any of the pages except SummaryPage
 /// </summary>
 /// <param name="sender"> not used </param>
 /// <param name="e"> not used </param>
 private void _page_PageFinished(object sender, EventArgs e)
 {
     if (ContentFrame.Content == StudentIDPage)
     {
         if (StudentIDPage.IsQuickPick == true)
         {
             ContentFrame.Navigate(SummaryPage);
             SummaryPage.StartTimer();
         }
         else
         {
             ContentFrame.Navigate(AppointmentPage);
         }
     }
     else if (ContentFrame.Content == AppointmentPage)
     {
         if (AppointmentPage.HasAppointment == true) // @ appointment page
         {
             ContentFrame.Navigate(AppointmentProbPage);
         }
         else
         {
             ContentFrame.Navigate(ProblemPage);
         }
     }
     else if (ContentFrame.Content == ProblemPage)
     {
         SummaryPage.SetText(StudentIDPage.StudentID, ProblemPage.Problem, ProblemPage.Description);
         SummaryPage.StartTimer();           // starts a 10 sec timer to auto close summary page
         ContentFrame.Navigate(SummaryPage); // @ problem page, go to summary next
     }
     else if (ContentFrame.Content == AppointmentProbPage)
     {
         SendAppointment(_appt_prob_page.Problem); // send in ticket and reset if user has one
     }
 }
        private void CreatePages()
        {
            _student_id_page = new StudentIDPage();
            _student_id_page.PageFinished += _page_PageFinished;

            _appt_page = new AppointmentPage();
            _appt_page.PageFinished += _page_PageFinished;

            _appt_prob_page = new AppointmentProblemPage();
            _appt_prob_page.PageFinished += _page_PageFinished;
            
            _problem_page = new ProblemPage();
            _problem_page.PageFinished += _page_PageFinished;

            _summary_page = new SummaryPage();
            _summary_page.PageFinished += _summary_page_PageFinished;
        }