/// <summary> /// Creates a new <see cref="EventLogListenerConfigurator"/> instance. /// </summary> public EventLogListenerConfigurator(EventLogListener listener) { _listener = listener; if (_log.Enabled) { _log.Debug(GetHashCode(), "Create EventLogListenerConfigurator(IListener)"); } // This call is required by the Windows.Forms Form Designer. InitializeComponent(); UpdateControls(); cboLogName.Enabled = false; txtHost.Enabled = false; }
/// <summary> /// Creates a new <see cref="EventLogListenerConfigurator"/> instance. /// </summary> public EventLogListenerConfigurator() { if (_log.Enabled) { _log.Debug(GetHashCode(), "Create EventLogListenerConfigurator"); } // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call _listener = new EventLogListener(); _listener.Host = "."; _listener.LogName = "Application"; _listener.PollInterval = 3000; }