Esempio n. 1
0
        public async Task Create(MPattern item)
        {
            item.ID = await patternDS.Create(item);

            PatternItemsAll.Add(item);
            ApplyFilters();
        }
Esempio n. 2
0
 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));
 }