Beispiel #1
0
 private LogMessageFilter Message()
 {
     using (var frm = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.Message)))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             var filter = new LogMessageFilter();
             filter.MessageText = frm.ResultFilter;
             return(filter);
         }
         return(null);
     }
 }
 private LogMessageFilter Message()
 {
     using (var frm = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.Message)))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             var filter = new LogMessageFilter();
             filter.MessageText = frm.ResultFilter;
             return filter;
         }
         return null;
     }
 }
Beispiel #3
0
 private LogMessageFilter MessageAndEvent()
 {
     using (var frm = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.ExceptionString)))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             var filter = new LogMessageFilter();
             filter.ExceptionText = frm.ResultFilter;
             filter.EventName     = new StringMatching(StringMatchingMode.Exact, m_log.EventName);
             return(filter);
         }
         return(null);
     }
 }
Beispiel #4
0
 private LogMessageFilter MessageAndAssembly()
 {
     using (var frm = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.Details)))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             var filter = new LogMessageFilter();
             filter.DetailsText = frm.ResultFilter;
             filter.Assembly    = new StringMatching(StringMatchingMode.Exact, m_log.AssemblyName);
             return(filter);
         }
         return(null);
     }
 }
 private LogMessageFilter MessageAndEvent()
 {
     using (var frm = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.ExceptionString)))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             var filter = new LogMessageFilter();
             filter.ExceptionText = frm.ResultFilter;
             filter.EventName = new StringMatching(StringMatchingMode.Exact, m_log.EventName);
             return filter;
         }
         return null;
     }
 }
Beispiel #6
0
 private LogMessageFilter MessageAndRelatedType()
 {
     using (var frm = new RelatedTypesFilter(m_log.EventPublisherDetails.TypeData))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             using (var frm2 = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.Message)))
             {
                 if (frm2.ShowDialog() == DialogResult.OK)
                 {
                     var filter = new LogMessageFilter();
                     filter.RelatedType = new StringMatching(StringMatchingMode.Exact, frm.SelectedItem);
                     filter.MessageText = frm2.ResultFilter;
                     return(filter);
                 }
                 return(null);
             }
         }
         return(null);
     }
 }
        private LogMessageFilter MessageAndRelatedType()
        {
            using (var frm = new RelatedTypesFilter(m_log.EventPublisherDetails.TypeData))
            {
                if (frm.ShowDialog() == DialogResult.OK)
                {

                    using (var frm2 = new StringMatchingFilterDialog(new StringMatching(StringMatchingMode.Exact, m_log.Message)))
                    {
                        if (frm2.ShowDialog() == DialogResult.OK)
                        {
                            var filter = new LogMessageFilter();
                            filter.RelatedType = new StringMatching(StringMatchingMode.Exact, frm.SelectedItem);
                            filter.MessageText = frm2.ResultFilter;
                            return filter;
                        }
                        return null;
                    }
                }
                return null;
            }
        }