Esempio n. 1
0
 /// <summary>
 /// NAME: Austin Gee
 /// DATE: 2/17/2020
 /// CHECKED BY: Thomas Dupuy
 ///
 /// This is the no-argeument constructor
 /// </summary>
 /// <remarks>
 /// UPDATED BY: Austin Gee
 /// UPDATE DATE: 3/4/2020
 /// WHAT WAS CHANGED: _homeInspectorManager added.
 ///
 /// </remarks>
 public pgMeetAndGreets()
 {
     InitializeComponent();
     _adoptionAppointmentManager = new AdoptionAppointmentManager();
     _homeInspectorManager       = new InHomeInspectionAppointmentDecisionManager();
     _appointmentTypeManager     = new AppointmentTypeManager();
     _inHomeInspectionAppointmentDecisionManager = new InHomeInspectionAppointmentDecisionManager();
     populateAppointmentDataGrid();
     try
     {
         cmbApptFilter.ItemsSource = _appointmentTypeManager.RetrieveAllAppontmentTypes();
     }
     catch (Exception)
     {
     }
 }
        /// <summary>
        /// NAME: Austin Gee
        /// DATE: 3/18/2020
        /// CHECKED BY: Michael Thompson
        ///
        /// shows the scheduling screen
        /// </summary>
        /// <remarks>
        /// UPDATED BY: NA
        /// UPDATE DATE: NA
        /// WHAT WAS CHANGED: NA
        ///
        /// </remarks>
        private void showAppointmentScheduling()
        {
            try
            {
                dgAdoptionApplications.ItemsSource = _adoptionApplicationManager.RetrieveAdoptionApplicationsByEmailAndActive(_adoptionCustomerVM.Email);
                cmbAppointmentType.ItemsSource     = null;
                cmbAppointmentType.ItemsSource     = _appointmentTypeManager.RetrieveAllAppontmentTypes();
            }
            catch (Exception)
            {
            }

            populateLocationsDataGrid();
            canAdoptionCustomerProfile.Visibility  = Visibility.Hidden;
            canAdoptionCustomerProfiles.Visibility = Visibility.Hidden;
            canScheduleAppointment.Visibility      = Visibility.Visible;
            grdLocationDetails.Visibility          = Visibility.Hidden;
        }