private void PickUpButton_Click(object sender, RoutedEventArgs e) { ShelterView shelterView = new ShelterView(s); if (s.ContainsName(RemoveNameTextbox.Text) == true) { s.RemoveByName(RemoveNameTextbox.Text); PetsDisplayLabel.Content = shelterView.Show(); } else { MessageBox.Show("There is no pet by that name."); } }