/// <summary>
        /// Creator: Chuck Baxter
        /// Created: 2/13/2020
        /// Approver: Carl Davis, 2/14/2020
        /// Approver: Daulton Schilling, 2/14/2020
        ///
        /// The method that calls the manager method to get the active data for the data grid
        /// </summary>
        /// <remarks>
        /// Updater:
        /// Updated:
        /// Update:
        /// </remarks>
        private void refreshActiveData()
        {
            dgActiveAnimals.ItemsSource           = _animalManager.RetrieveAnimalsByActive();
            dgActiveAnimals.Columns[9].Visibility = Visibility.Hidden;

            //dgActiveAnimals.Columns[0].Header = "Name";
            //dgActiveAnimals.Columns[1].Header = "Date of Birth";
            //dgActiveAnimals.Columns[2].Header = "Breed";
            //dgActiveAnimals.Columns[3].Header = "Arrival Date";
            //dgActiveAnimals.Columns[4].Header = "Currently Housed";
            //dgActiveAnimals.Columns[6].Header = "Species";
        }
 /// <summary>
 /// Creator: Ethan Murphy
 /// Created: 2/9/2020
 /// Approver: Chuck Baxter 2/14/2020
 /// Approver: Carl Davis 2/14/2020
 ///
 /// Prepares UI controls for adding a new record
 /// </summary>
 /// <remarks>
 /// Updater:
 /// Updated:
 /// Update:
 /// </remarks>
 private void EnableAddMode()
 {
     dateAppointmentDate.IsEnabled        = true;
     cboAppointmentTime.IsEnabled         = true;
     txtClinicAddress.IsEnabled           = true;
     txtDescription.IsEnabled             = true;
     txtVetName.IsEnabled                 = true;
     dateAppointmentDate.DisplayDateStart = DateTime.Now;
     btnSaveEdit.Content      = "Save";
     dgAnimalList.Visibility  = Visibility.Visible;
     lblAnimalList.Visibility = Visibility.Visible;
     try
     {
         dgAnimalList.ItemsSource = _animalManager.RetrieveAnimalsByActive();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " " + ex.InnerException.Message);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creator: Chuck Baxter
 /// Created: 2/13/2020
 /// Approver: Carl Davis, 2/14/2020
 /// Approver: Daulton Schilling, 2/14/2020
 ///
 /// The method that calls the manager method to get the active data for the data grid
 /// </summary>
 /// <remarks>
 /// Updater: Chuck Baxter
 /// Updated: 3/6/2020
 /// Update: Corrected the data grid column headers
 /// Approver: Carl Davis, 3/6/2020
 /// </remarks>
 private void refreshActiveData()
 {
     dgActiveAnimals.ItemsSource = _animalManager.RetrieveAnimalsByActive();
 }