private void btnConnect_Click(object sender, EventArgs e) { string szIP = txtIP1.Text + "." + txtIP2.Text + "." + txtIP3.Text + "." + txtIP4.Text; CCTcpClientProtocol protocol = new CCTcpClientProtocol( szIP , int.Parse(txtPort.Text) ); //protocol.Broadcast = true; m_TCPInterface.Protocol = protocol; m_TCPInterface.Create(); //if (m_TCPInterface.Connect()) // cbConnect.CheckState = CheckState.Checked; }
private void btnConnect_Click(object sender, EventArgs e) { string szIP = txtIP1.Text + "." + txtIP2.Text + "." + txtIP3.Text + "." + txtIP4.Text; CCTcpClientProtocol protocol = new CCTcpClientProtocol(szIP, int.Parse(txtPort.Text)); //protocol.Broadcast = true; m_TCPInterface.Protocol = protocol; m_TCPInterface.Create(); //if (m_TCPInterface.Connect()) // cbConnect.CheckState = CheckState.Checked; }