/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolTraceroute(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the configuration. this.config = new TracerouteConfig(api); // Initialize the control. this.control = new ControlTraceroute(this.config); }
/// <summary> /// Creates a new control instance. /// </summary> /// <param name="config">The tool configuration.</param> public ControlTraceroute(TracerouteConfig config) { // Initialize the component. this.InitializeComponent(); // Set the configuration. this.config = config; // Create the traceroute settings. this.settings = new TracerouteSettings(); // Create the traceroute instance. this.traceroute = new Traceroute(this.settings); // Load the configuration. this.OnLoadConfiguration(); // Set the status. this.status = this.config.Api.Status.GetHandler(this); this.status.Send(ApplicationStatus.StatusType.Normal, "Ready.", Resources.Information_16); }