Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmLogFilter"/>.
        /// </summary>
        /// <param name="logProvider">The <see cref=ILogProvider"/> instance to filter for.</param>
        /// <param name="filterHandler">The <see cref="ILogFilterHandler"/> that handles changed filter settings.</param>
        public FrmLogFilter(ILogProvider logProvider, ILogFilterHandler filterHandler)
        {
            InitializeComponent();

            // Apply the current application theme to the control.
            ThemeManager.ApplyTo(this);

            mLogProvider      = logProvider;
            mLogFilterHandler = filterHandler;
            Font = SystemFonts.MessageBoxFont;

            if (mLogFilterHandler != null)
            {
                mLogFilterHandler.RegisterFilterProvider(this);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new instance of the <see cref="FrmLogTree"/> window.
        /// </summary>
        /// <param name="filterHandler">The <see cref="ILogFilterHandler"/> that handles changed filter settings.</param>
        /// <param name="loggerPathSeperator">The path seperator for <see cref="LogMessage"/>s to build the tree from.</param>
        public FrmLogTree(ILogFilterHandler filterHandler, string loggerPathSeperator)
        {
            InitializeComponent();

            // Apply the current application theme to the control.
            ThemeManager.CurrentApplicationTheme.ApplyTo(tsLoggerTree);

            mLogFilterHandler = filterHandler;
            Font = SystemFonts.MessageBoxFont;

            if (mLogFilterHandler != null)
            {
                // Register the tree as log provider.
                filterHandler.RegisterFilterProvider(this);
            }

            tvLoggerTree.PathSeparator = loggerPathSeperator;
        }
Beispiel #3
0
        /// <summary>
        /// Creates a new instance of the <see cref="FrmLogTree"/> window.
        /// </summary>
        /// <param name="filterHandler">The <see cref="ILogFilterHandler"/> that handles changed filter settings.</param>
        /// <param name="loggerPathSeperator">The path seperator for <see cref="LogMessage"/>s to build the tree from.</param>
        public FrmLogTree(ILogFilterHandler filterHandler, string loggerPathSeperator)
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint,  true);
              SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
              SetStyle(ControlStyles.UserPaint,             true);

              InitializeComponent();

              // Apply the current application theme to the control.
              ThemeManager.CurrentApplicationTheme.ApplyTo(tsLoggerTree);

              mLogFilterHandler = filterHandler;
              Font              = SystemFonts.MessageBoxFont;

              if (mLogFilterHandler != null)
              {
            // Register the tree as log provider.
            filterHandler.RegisterFilterProvider(this);
              }

              tvLoggerTree.PathSeparator = loggerPathSeperator;
        }
Beispiel #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmLogFilter"/>.
        /// </summary>
        /// <param name="logProvider">The <see cref=ILogProvider"/> instance to filter for.</param>
        /// <param name="filterHandler">The <see cref="ILogFilterHandler"/> that handles changed filter settings.</param>
        public FrmLogFilter(ILogProvider logProvider, ILogFilterHandler filterHandler)
        {
            InitializeComponent();

              // Apply the current application theme to the control.
              ThemeManager.CurrentApplicationTheme.ApplyTo(tsFilter);

              mLogProvider      = logProvider;
              mLogFilterHandler = filterHandler;
              Font              = SystemFonts.MessageBoxFont;

              if (mLogFilterHandler != null)
              {
            mLogFilterHandler.RegisterFilterProvider(this);
              }
        }