public async Task Create(MPattern item) { item.ID = await patternDS.Create(item); PatternItemsAll.Add(item); ApplyFilters(); }
void ApplyFilters() { PatternItems = NoFilter ? PatternItemsAll : new ObservableCollection <MPattern>(PatternItemsAll.Where(o => (string.IsNullOrEmpty(TextFilter) || (ScopeFilter == "Pattern" ? o.PATTERN : ScopeFilter == "Note" ? o.NOTE ?? "" : o.TAGS ?? "").ToLower().Contains(TextFilter.ToLower())) )); this.RaisePropertyChanged(nameof(PatternItems)); }