private void tim_upNext_Tick(object sender, EventArgs e) { if (waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Stop) { return; } if (_tcpClient.IsTCPLink) { string TEMP = ""; if (waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Ready) { TEMP = "SMYB"; } if (waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.CycleLoading) { TEMP = "SMKS"; } if (waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Start) { TEMP = "SMKS"; } if (waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Next) { TEMP = "XYJ"; } double yl = _tcpClient.GetSMYBSDYL(ref IsSeccess, TEMP); if (!IsSeccess) { // MessageBox.Show("读取设定值异常", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } lbl_sdyl.Text = yl.ToString(); if (waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Next || waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Start || waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.Next || waterTightPropertyTest == PublicEnum.WaterTightPropertyTest.SrartBD) { if (this.rdb_bdjy.Checked == true) { lbl_max.Visible = true; var minVal = 0; var maxVal = 0; _tcpClient.GetCYXS_BODONG(ref IsSeccess, ref minVal, ref maxVal); lbl_sdyl.Text = minVal.ToString(); lbl_max.Text = maxVal.ToString(); } } } }