private void m_cBoxSelHardware_SelectedIndexChanged(object sender, EventArgs e) { STRUCT_CMT_INFO tCmtInfo = m_oKernel.GetCmtPara(m_cBoxSelHardware.Text); m_cBoxCmtPattern.SelectedIndex = tCmtInfo.m_nType; //m_cBoxCmtPattern.SelectedIndex = 0; m_tBoxAddress.Text = tCmtInfo.m_strStcpAddress; m_tBoxPort.Text = tCmtInfo.m_nStcpPort.ToString(); m_cBoxPortNo.Text = tCmtInfo.m_strSerialPortNum; m_cBoxBaudRate.Text = tCmtInfo.m_nSerialBaudRate.ToString(); m_cBoxDateBits.Text = tCmtInfo.m_nSerialDateBits.ToString(); m_cBoxStopBits.Text = tCmtInfo.m_strSerialStopBits; m_cBoxParity.Text = tCmtInfo.m_strSerialParity; }