/// <summary> /// UPDATE THE LIST VIEW ACCORDING TO THE FILTER /// </summary> public void UpdateList() { VehicleIC.ValueProperty = Vehicle.vehicleList.Count.ToString(); RentalIC.ValueProperty = Rental.rentalList.Count.ToString(); AvailableVehiclesIC.ValueProperty = Rental.GetAvailableVehicles().Count.ToString(); TotalRentalIC.ValueProperty = Rental.GetTotalRevenue().ToString("C"); }
/// <summary> /// UPDATE THE LIST VIEW ACCORDING TO THE FILTER /// </summary> public void UpdateList() { lvRentVehicleList.ItemsSource = Rental.GetAvailableVehicles(txtFilter.Text); lvRentVehicleList.Items.Refresh(); }