private void btnConnect_Click(object sender, System.EventArgs e) { string strQueueManagerName; string strQueueName; string strChannelInfo; //TODO //PUT Valication Code Here strQueueManagerName =txtQueueManagerName.Text; strQueueName =txtQueueName.Text; strChannelInfo = txtChannelInfo.Text; lblConnect.Text = myMQ.ConnectMQ(strQueueManagerName, strQueueName, strChannelInfo); } Call the ConnectMQ method for connecting to the define Queue of the MQ Server. The btnWriteMsg_Click Method: private void btnWriteMsg_Click(object sender, System.EventArgs e) { txtPUT.Text = myMQ.WriteMsg(txtPUT.Text.ToString()); } This method for sends the input message to the define Queue of the MQ Server. The btnReadMsg_Click Method: private void btnReadMsg_Click(object sender, System.EventArgs e) { txtGET.Text = myMQ.ReadMsg(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)