/// <summary>
        /// Creates a new form instance.
        /// </summary>
        /// <param name="application">The traceroute application.</param>
        public FormMain(TracerouteApplication application)
        {
            // Set the application.
            this.application = application;

            // Initialize the component.
            this.InitializeComponent();

            // Get the theme settings.
            this.themeSettings = ToolStripManager.Renderer is ThemeRenderer ? (ToolStripManager.Renderer as ThemeRenderer).Settings : ThemeSettings.Default;

            // Intialize the controls.
            this.controlAddresses.Initialize(this.application);
            this.controlDns.Initialize(this.application);
            this.controlLog.Initialize(this.application);

            // Set the event handlers.
            this.application.Status.MessageChanged += this.OnStatusMessageChanged;

            // Call the tab changed event handler to initialize the application status.
            this.OnTabChanged(this, EventArgs.Empty);

            // Set the font.
            Window.SetFont(this);
        }
 /// <summary>
 /// Initializes the control with the current application.
 /// </summary>
 /// <param name="application">The application.</param>
 public void Initialize(TracerouteApplication application)
 {
     // Set the application.
     this.application = application;
     // Set the application status handler.
     this.status = this.application.Status.GetHandler(this);
     // Enable the control.
     this.Enabled = true;
     // Refresh the log.
     this.OnCalendarDateChanged(null, new DateRangeEventArgs(this.calendar.Calendar.SelectionStart, this.calendar.Calendar.SelectionEnd));
 }
        /// <summary>
        /// Initializes the control.
        /// </summary>
        /// <param name="application">The application.</param>
        public void Initialize(TracerouteApplication application)
        {
            // Set the application.
            this.application = application;
            // Set the control status.
            this.status = this.application.Status.GetHandler(this);

            // Set the network addresses changed event handler.
            NetworkConfiguration.NetworkAddressesChanged += this.OnRefresh;

            // Enable the control.
            this.Enabled = true;

            // Update the list of interface addresses.
            this.OnRefresh(true);
        }
        /// <summary>
        /// Initializes the control.
        /// </summary>
        /// <param name="application">The application.</param>
        public void Initialize(TracerouteApplication application)
        {
            // Set the application.
            this.application = application;
            // Set the control status.
            this.status = this.application.Status.GetHandler(this);

            // Enable the control.
            this.Enabled = true;
        }