public ClothesFilteringViewModel(IEventAggregator eventAggregator, ITypeFilteringConditionsService typeFilteringConditionsService, IFilteringService filteringService) { this.eventAggregator = eventAggregator; this.typeFilteringConditionsService = typeFilteringConditionsService; this.filteringService = filteringService; SelectedFilter = FilterTabs[0]; filteringService.TypesFilterListUpdated += FilteringService_TypesFilterListUpdated; SelectedTypeFilter = TypesFilterList[0]; }
public FilteringService(IEventAggregator eventAggregator, ITypeFilteringConditionsService typeFilteringConditionsService) { this.eventAggregator = eventAggregator; this.typeFilteringConditionsService = typeFilteringConditionsService; FilterTabs = FilteringSortingConditions.GenerateStandardConditions(); currentFilter = FilterTabs[0]; TypesFilterList = typeFilteringConditionsService.Conditions; typeFilteringConditionsService.FilteringConditionsUpdated += TypeFilteringConditionsService_FilteringConditionsUpdated; currentTypeFilter = TypesFilterList[0]; }