private void btn_server_ok_Click(object sender, EventArgs e) { try { OpenERPOutlookPlugin openerp_outlook = Cache.OpenERPOutlookPlugin; OpenERPConnect openerp_connect = openerp_outlook.Connection; string url = Tools.JoinURL(this.txt_server_host.Text, this.txt_server_port.Text, this.chkSSL.Checked); this.txtServerURL.Text = url; openerp_connect.check_connectivity(); this.Close(); } catch (Exception ex) { Connect.handleException(ex); } }