private void timer_LineSaddleControl_Tick(object sender, EventArgs e)
        {
            //不在当前页面停止刷新
            if (tabActived == false)
            {
                return;
            }

            lineSaddleTag.readTags();

            foreach (Control control in panelAutoScroll.Controls)
            {
                if (control is CoilUnitSaddleButton)
                {
                    CoilUnitSaddleButton t = (CoilUnitSaddleButton)control;
                    if (!string.IsNullOrEmpty(t.MySaddleTagName_Feedback) && t.MySaddleTagName_Feedback != "")
                    {
                        CoilUnitSaddleButton.delRefresh_Button_Light del = t.refresh_Button_Light;
                        del(lineSaddleTag.getTagValue(t.MySaddleTagName_Feedback));
                    }
                }

                if (control is CoilUnitStatus)
                {
                    CoilUnitStatus t = (CoilUnitStatus)control;
                    if (!string.IsNullOrEmpty(t.MyStatusTagName) && t.MyStatusTagName != "")
                    {
                        CoilUnitStatus.delSetColor del = t.SetColor;
                        del(lineSaddleTag.getTagValue(t.MyStatusTagName));
                    }
                }
            }
            foreach (Control control in groupBox4.Controls)
            {
                if (control is CoilUnitSaddleButton)
                {
                    CoilUnitSaddleButton t = (CoilUnitSaddleButton)control;
                    if (!string.IsNullOrEmpty(t.MySaddleTagName_Feedback) && t.MySaddleTagName_Feedback != "")
                    {
                        CoilUnitSaddleButton.delRefresh_Button_Light del = t.refresh_Button_Light;
                        del(lineSaddleTag.getTagValue(t.MySaddleTagName_Feedback));
                    }
                }
            }

            entrySaddleInfo.getEntrySaddleDt(dgvEntrySaddleInfo, H145Unit);
            entrySaddleInfo.getL2PlanByUnitNo(dgvL2Plan, H145Unit);

            lbl_NextCoil.Text = entrySaddleInfo.getCoilByUnitNo(H145Unit);

            getSaddleMessage();
        }
Beispiel #2
0
        private void timer_LineSaddleControl_Tick(object sender, EventArgs e)
        {
            //不在当前页面停止刷新
            if (tabActived == false)
            {
                return;
            }

            lineSaddleTag.readTags();

            foreach (Control control in panelAutoScroll.Controls)
            {
                if (control is CoilUnitSaddleButton)
                {
                    //CoilUnitSaddleButton t = (CoilUnitSaddleButton)control;
                    //if (!string.IsNullOrEmpty(t.MySaddleTagName) && t.MySaddleTagName != "")
                    //{
                    //    CoilUnitSaddleButton.delRefresh_Button_Light del = t.refresh_Button_Light;
                    //    del(lineSaddleTag.getTagValue(t.MySaddleTagName));
                    //}
                }

                if (control is CoilUnitStatus)
                {
                    CoilUnitStatus t = (CoilUnitStatus)control;
                    if (!string.IsNullOrEmpty(t.MyStatusTagName) && t.MyStatusTagName != "")
                    {
                        CoilUnitStatus.delSetColor del = t.SetColor;
                        del(lineSaddleTag.getTagValue(t.MyStatusTagName));
                    }
                }
            }

            exitSaddleInfo.getExitSaddleDt(dgvExitSaddleInfo, constData.UnitNo);

            getSaddleMessage();
        }