Example #1
0
        private void Remove_Click(object sender, RoutedEventArgs e)
        {
            Travel travel = (Travel)TravelContainer.SelectedItem;

            travelRepo.DeleteTravel(travel.Id);
            travels.Remove(travel);
        }