示例#1
0
 protected bool ItemsFilter(object e)
 {
     if (e is T entity && FilterList.Any(f => f.Key == FilterType) && !string.IsNullOrEmpty(FilterText))
     {
         var value = entity.GetType().GetProperty(FilterType).GetValue(entity, null);
         return(value == null || value.ToString().ToUpper().Contains(FilterText.ToUpper()));
     }
        private void Application_NewMailEx(string EntryID)
        {
            var newMail = (Outlook.MailItem)_Explorers.Application.Session.GetItemFromID(EntryID, System.Reflection.Missing.Value);

            if (newMail != null)
            {
                _Filters.Any(r => r.Process(newMail) && r.CanAbortProcessing);
            }
        }