public bool Matches(LogRecordSearchCriteria searchCriteria)
 {
     if (_source.IndexOf(searchCriteria.Source) != -1 ||
         _message.IndexOf(searchCriteria.Message) != -1)
     {
         return(true);
     }
     return(false);
 }
        public ArrayList Find(LogRecordSearchCriteria searchCriteria)
        {
            ArrayList searchResults = new ArrayList();

            foreach (IEventLogRecord record in _records)
            {
                if (record.Matches(searchCriteria))
                {
                    searchResults.Add(record);
                }
            }
            return(searchResults);
        }
 public bool Matches(LogRecordSearchCriteria searchCriteria)
 {
     if (_source.IndexOf(searchCriteria.Source) != -1
         || _message.IndexOf(searchCriteria.Message) != -1)
         return true;
     return false;
 }