Exemplo n.º 1
0
        private void ComboBoxCurrentPatient_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataAccessZoo dataAccess       = new DataAccessZoo();
            var           animal           = (AnimalSimple)ComboBoxCurrentPatient.SelectedItem;
            var           journalEntryList = dataAccess.GetJournalEntries(animal.AnimalId);

            ListBoxJournalEntries.ItemsSource = journalEntryList;
            PopulateOrUpdateBookingListByAnimalId(dataAccess, animal.AnimalId);
        }
Exemplo n.º 2
0
 private void ListBoxBookings_OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     DataAccessZoo dataAccess       = new DataAccessZoo();
     var           booking          = (AnimalBooking)ListBoxBookings.SelectedItem;
     var           journalEntryList = dataAccess.GetJournalEntries(booking.AnimalId);
 }
Exemplo n.º 3
0
        private void PopulateOrUpdateJournalEntryList(DataAccessZoo dataAccess, int animalId)
        {
            var journalEntryList = dataAccess.GetJournalEntries(animalId);

            ListBoxJournalEntries.ItemsSource = journalEntryList;
        }