示例#1
0
        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();
        }