コード例 #1
0
 private void GetFilteredWords(string category)
 {
     CategoryFilter         = category;
     FilteredWords          = AllWords.Where(x => x.Category == CategoryFilter).ToList();
     IsCatListVisible       = false;
     IsFilteredWordsVisible = true;
 }
コード例 #2
0
        public override async void OnNavigatedTo(INavigationParameters parameters)
        {
            IsCatButtonEnabled = false;
            AllWords           = await _databaseService.GetAllWords();

            if (IsFilteredWordsVisible)
            {
                FilteredWords = AllWords.Where(x => x.Category == CategoryFilter).ToList();
            }
            IsCatButtonEnabled = true;
        }