private void syncParameters() { processing = true; System.Threading.Thread.Sleep(20); // Protocol Parameters PassiveCommand.GetConfig(SystemPub.ADRcp); //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.GetConfig(SystemPub.ADRcp.Address))) { } System.Threading.Thread.Sleep(20); if (IniSettings.Communication != IniSettings.CommType.USB) { PassiveCommand.GetTcpip(SystemPub.ADRcp); //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.GetTcpip(SystemPub.ADRcp.Address))) { } } processing = false; }
private void btnGetPara_Click(object sender, EventArgs e) { PassiveCommand.GetConfig(SystemPub.ADRcp); //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.GetConfig(SystemPub.ADRcp.Address))) { } }