private void Remove_Click(object sender, RoutedEventArgs e) { Travel travel = (Travel)TravelContainer.SelectedItem; travelRepo.DeleteTravel(travel.Id); travels.Remove(travel); }