Esempio n. 1
0
        /// <summary>
        /// 抗风压
        /// </summary>
        private void ShowWindPressure()
        {
            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();

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

            this.pl_showItem.Controls.Clear();
            rts.TopLevel        = false;
            rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            rts.Parent          = this.pl_showItem;
            rts.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// 抗风压
        /// </summary>
        private void ShowWindPressure()
        {
            WindPressureDetection rts = new WindPressureDetection(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();
        }
Esempio n. 3
0
        /// <summary>
        /// 抗风压
        /// </summary>
        private void ShowWindPressure()
        {
            WindPressureDetection rts = new WindPressureDetection(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().Dispose();
            //new WatertightDetection().Dispose();
            //new DetectionSet().Dispose();

            //new AirtightDetection().StopTimer();
            //new WatertightDetection().StopTimer();
            //new WindPressureDetection().InitTimer();
        }