private void btnConnect_Click(object sender, EventArgs e) { try { if (!GlobalFunction.CheckControlInput(txtURI, "URI", 0, false)) return; m_mq = new MQ(); m_mq.uri = txtURI.Text; m_mq.username = txtUserName.Text; m_mq.password = txtPassword.Text; m_mq.Start(); } catch (System.Exception ex) { GlobalFunction.MsgBoxException(ex.Message, "btnConnect_Click"); } }
private void btnConnect_Click(object sender, EventArgs e) { try { if (!GlobalFunction.CheckControlInput(txtURI, "URI", 0, false)) { return; } m_mq = new MQ(); m_mq.uri = txtURI.Text; m_mq.username = txtUserName.Text; m_mq.password = txtPassword.Text; m_mq.Start(); } catch (System.Exception ex) { GlobalFunction.MsgBoxException(ex.Message, "btnConnect_Click"); } }