public SrsEntryFilterViewModel(SrsEntryFilter filter) { Filter = filter; MeaningFilterVm = new SrsEntryMeaningFilterViewModel(); MeaningFilterVm.FilterChanged += OnFilterChanged; ReadingFilterVm = new SrsEntryReadingFilterViewModel(); ReadingFilterVm.FilterChanged += OnFilterChanged; TagsFilterVm = new SrsEntryTagsFilterViewModel(); TagsFilterVm.FilterChanged += OnFilterChanged; TypeFilterVm = new SrsEntryTypeFilterViewModel(); TypeFilterVm.FilterChanged += OnFilterChanged; LevelFilterVm = new SrsEntryLevelFilterViewModel(); LevelFilterVm.FilterChanged += OnFilterChanged; // Commands BrowseAllItemsCommand = new RelayCommand(OnBrowseAllItems); RefreshCommand = new RelayCommand(OnRefresh); }
public SrsEntryFilterViewModel(SrsEntryFilter filter) { Filter = filter; MeaningFilterVm = new SrsEntryMeaningFilterViewModel(); MeaningFilterVm.FilterChanged += OnFilterChanged; ReadingFilterVm = new SrsEntryReadingFilterViewModel(); ReadingFilterVm.FilterChanged += OnFilterChanged; TagsFilterVm = new SrsEntryTagsFilterViewModel(); TagsFilterVm.FilterChanged += OnFilterChanged; TypeFilterVm = new SrsEntryTypeFilterViewModel(); TypeFilterVm.FilterChanged += OnFilterChanged; LevelFilterVm = new SrsEntryLevelFilterViewModel(); LevelFilterVm.FilterChanged += OnFilterChanged; CategoryFilterVm = new CategoryFilterViewModel(); CategoryFilterVm.FilterChanged += OnFilterChanged; JlptLevelFilterVm = new JlptLevelFilterViewModel(); JlptLevelFilterVm.FilterChanged += OnFilterChanged; WkLevelFilterVm = new WkLevelFilterViewModel(); WkLevelFilterVm.FilterChanged += OnFilterChanged; // Commands BrowseAllItemsCommand = new RelayCommand(OnBrowseAllItems); RefreshCommand = new RelayCommand(OnRefresh); }