Ejemplo n.º 1
0
        /// <summary>
        /// 气密监控
        /// </summary>
        private void ShowAirtightDetection()
        {
            if (pl_showItem.Controls.Count > 0)
            {
                foreach (Control con in this.pl_showItem.Controls)
                {
                    if (con is DetectionSet)
                    {
                    }
                    else if (con is WindPressureDetection)
                    {
                        con.Dispose();
                        ((Form)con).Close();
                    }
                    else
                    {
                        ((Form)con).Close();
                    }
                }
            }
            this.pl_showItem.Controls.Clear();

            AirtightDetection rts = new AirtightDetection(_serialPortClient, _tempCode, _tempTong);

            rts.TopLevel        = false;
            rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            rts.Parent          = this.pl_showItem;

            rts.Show();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 气密监控
        /// </summary>
        private void ShowAirtightDetection()
        {
            AirtightDetection rts = new AirtightDetection(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();
        }