public override bool IsMatch(Alias item, FilterLiteral filterToken) { if (filterToken == null) { return(true); } string payeeName = (item.Payee != null) ? item.Payee.Name : null; return(filterToken.MatchSubstring(item.AliasType.ToString()) || filterToken.MatchSubstring(item.Pattern) || filterToken.MatchSubstring(payeeName)); }
public override bool IsMatch(Security item, FilterLiteral filter) { if (filter == null) { return(true); } else { return(filter.MatchSubstring(item.CuspId) || filter.MatchSubstring(item.Name) || filter.MatchSubstring(item.Symbol) || filter.MatchDecimal(item.Price)); } }
public override bool IsMatch(Currency item, FilterLiteral filterToken) { if (filterToken == null) { return(true); } else { return(filterToken.MatchSubstring(item.Name) || filterToken.MatchSubstring(item.Symbol) || filterToken.MatchDecimal(item.Ratio) || filterToken.MatchDecimal(item.LastRatio)); } }