/// <summary> /// 水密监控 /// </summary> private void ShowWatertightDetection() { if (pl_showItem.Controls.Count > 0) { foreach (Control con in this.pl_showItem.Controls) { if (con is DetectionSet) { } else if (con is WindPressureDetection) { //WindPressureDetection.releaseThread(); con.Dispose(); ((Form)con).Close(); } else { ((Form)con).Close(); } } } this.pl_showItem.Controls.Clear(); WatertightDetection rts = new WatertightDetection(_serialPortClient, _tempCode, _tempTong); rts.TopLevel = false; rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; rts.Parent = this.pl_showItem; rts.Show(); }
/// <summary> /// 水密监控 /// </summary> private void ShowWatertightDetection() { this.pl_showItem.Controls.Clear(); WatertightDetection rts = new WatertightDetection(tcpClient, _tempCode, _tempTong); rts.TopLevel = false; rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; rts.Parent = this.pl_showItem; rts.Show(); }
/// <summary> /// 水密监控 /// </summary> private void ShowWatertightDetection() { WatertightDetection rts = new WatertightDetection(tcpClient, _tempCode, _tempTong); this.pl_showItem.Controls.Clear(); rts.TopLevel = false; rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; rts.Parent = this.pl_showItem; rts.Show(); //new AirtightDetection().StopTimer(); //new WatertightDetection().InitTimer(); //new WindPressureDetection().StopTimer(); }