/// <summary> /// Creates a new tool instance. /// </summary> /// <param name="api">The tool API.</param> /// <param name="toolset">The toolset information.</param> public ToolSshClient(IToolApi api, ToolsetInfoAttribute toolset) : base(api, toolset) { // Create the configuration. this.config = new SshClientConfig(api); // Initialize the control. this.control = new ControlSshClient(this.config); }
// Public declarations /// <summary> /// Creates a new control instance. /// </summary> /// <param name="config">The tool configuration.</param> public ControlSshClient(SshClientConfig config) { // Initialize component. this.InitializeComponent(); // Set the tool configuration. this.config = config; // Get the crawler status. this.status = this.config.Api.Status.GetHandler(this); this.status.Send(ApplicationStatus.StatusType.Normal, "Disconnected.", Resources.Server_16); // Load the settings. this.OnLoad(); }