예제 #1
0
        /// <summary>
        /// 参数设置
        /// </summary>
        private void ShowDetectionSet()
        {
            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();
                        //WindPressureDetection.releaseThread();
                        ((Form)con).Close();
                    }
                    else
                    {
                        ((Form)con).Close();
                    }
                }
            }

            this.pl_showItem.Controls.Clear();
            DetectionSet ds = new DetectionSet(_serialPortClient, _temperature, _temppressure, _tempCode, _tempTong);

            ds.deleBottomTypeEvent += new DetectionSet.deleBottomType(SelectDangHao);
            ds.GetDangHaoTrigger();
            ds.TopLevel = false;
            ds.Parent   = this.pl_showItem;
            ds.Show();
        }
예제 #2
0
        /// <summary>
        /// 检测监控
        /// </summary>
        //private void ShowRealTimeSurveillance(int type)
        //{
        //    RealTimeSurveillance rts = new RealTimeSurveillance(tcpClient, _tempCode, _tempTong, type);
        //    this.pl_showItem.Controls.Clear();
        //    rts.TopLevel = false;
        //    rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
        //    rts.Parent = this.pl_showItem;
        //    rts.Show();
        //}

        /// <summary>
        /// 参数设置
        /// </summary>
        private void ShowDetectionSet()
        {
            this.pl_showItem.Controls.Clear();
            DetectionSet ds = new DetectionSet(tcpClient, _temperature, _temppressure, _tempCode, _tempTong);

            ds.deleBottomTypeEvent += new DetectionSet.deleBottomType(SelectDangHao);
            ds.GetDangHaoTrigger();
            ds.TopLevel = false;
            ds.Parent   = this.pl_showItem;
            ds.Show();
        }
예제 #3
0
        /// <summary>
        /// 检测监控
        /// </summary>
        //private void ShowRealTimeSurveillance(int type)
        //{
        //    RealTimeSurveillance rts = new RealTimeSurveillance(tcpClient, _tempCode, _tempTong, type);
        //    this.pl_showItem.Controls.Clear();
        //    rts.TopLevel = false;
        //    rts.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
        //    rts.Parent = this.pl_showItem;
        //    rts.Show();
        //}

        /// <summary>
        /// 参数设置
        /// </summary>
        private void ShowDetectionSet()
        {
            this.pl_showItem.Controls.Clear();
            DetectionSet ds = new DetectionSet(_temperature, _temppressure, _tempCode, _tempTong);

            ds.deleBottomTypeEvent += new DetectionSet.deleBottomType(SelectDangHao);
            ds.GetDangHaoTrigger();
            ds.TopLevel = false;
            ds.Parent   = this.pl_showItem;
            ds.Show();


            //new AirtightDetection().Dispose();
            // new WatertightDetection().Dispose();
            //new WindPressureDetection().Dispose();

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