private bool editSSHConnection(IWin32Window parentWindow) { SSHConnectionManagerUIForm sshCMUIForm = new SSHConnectionManagerUIForm(); sshCMUIForm.Initialize(_connectionManager, this._serviceProvider); if (sshCMUIForm.ShowDialog(parentWindow) == DialogResult.OK) { sshCMUIForm.Dispose(); return(true); } else { sshCMUIForm.Dispose(); return(false); } }
private bool editSSHConnection(IWin32Window parentWindow) { SSHConnectionManagerUIForm sshCMUIForm = new SSHConnectionManagerUIForm(); sshCMUIForm.Initialize(_connectionManager, this._serviceProvider); if (sshCMUIForm.ShowDialog(parentWindow) == DialogResult.OK) { sshCMUIForm.Dispose(); return true; } else { sshCMUIForm.Dispose(); return false; } }