private void ResetFilters() { ThereIsMast = null; SelectedIdBoat = null; MinValueBasePrice = _eF.GetMinBasePrice(); MinValueNumberOfRowers = _eF.GetMinNumberOfRowers(); MinValueVATBoat = _eF.GetMinVATBoat(); MinValueProductionStartDate = _eF.GetMinProductionStartDate(); MaxValueBasePrice = _eF.GetMaxBasePrice(); MaxValueNumberOfRowers = _eF.GetMaxNumberOfRowers(); MaxValueVATBoat = _eF.GetMaxVATBoat(); MaxValueProductionStartDate = _eF.GetMaxProductionStartDate(); BeginValueBasePrice = MinValueBasePrice; BeginValueNumberOfRowers = MinValueNumberOfRowers; BeginValueVATBoat = MinValueVATBoat; BeginValueProductionStartDate = MinValueProductionStartDate; EndValueBasePrice = MaxValueBasePrice; EndValueNumberOfRowers = MaxValueNumberOfRowers; EndValueVATBoat = MaxValueVATBoat; EndValueProductionStartDate = MaxValueProductionStartDate; FilterText = ""; BoatTypes = CollectionConverter <string> .ConvertToObservableCollection(_eF.GetStringListBoatTypes()); Colours = CollectionConverter <string> .ConvertToObservableCollection(_eF.GetStringListColours()); TypesModel = CollectionConverter <string> .ConvertToObservableCollection(_eF.GetTypesModel()); Woods = CollectionConverter <string> .ConvertToObservableCollection(_eF.GetStringListWoods()); ListSelectedBoatTypes.Clear(); ListSelectedColours.Clear(); ListSelectedTypesModel.Clear(); ListSelectedWoods.Clear(); Searching(); }
private void Searching() { Boats = CollectionConverter <v_boat> .ConvertToObservableCollection(_eF.GetBoats(FilterText, ListSelectedBoatTypes.ToList(), ListSelectedTypesModel.ToList(), new Range <int>(BeginValueNumberOfRowers, EndValueNumberOfRowers), ThereIsMast, ListSelectedColours.ToList(), ListSelectedWoods.ToList(), new Range <int>(BeginValueBasePrice, EndValueBasePrice), new Range <double>(BeginValueVATBoat, EndValueVATBoat), new Range <DateTime>(BeginValueProductionStartDate, EndValueProductionStartDate))); }