public override bool MatchFilter(string filter) { string ucfilter = filter.ToUpper(); if (base.MatchFilter(filter) == true) { return(true); } else if (Name.ToUpper().Contains(ucfilter)) { return(true); } else if (CustomerID.ToString().Contains(filter)) { return(true); } else if (AccountNumber.ToUpper().Contains(ucfilter)) { return(true); } else if (Address.ToUpper().Contains(ucfilter)) { return(true); } else if (City.ToUpper().Contains(ucfilter)) { return(true); } else if (Province.ToUpper().Contains(ucfilter)) { return(true); } else if (PostalCode.ToUpper().Contains(ucfilter)) { return(true); } else if (Customer.Name.ToUpper().Contains(ucfilter)) { return(true); } else { return(false); } }
protected override IEnumerable <object> GetEqualityComponents() { yield return(AccountNumber.ToUpper()); yield return(BankName.ToUpper()); }