private void frmPlayLine_MouseEnter(object sender, EventArgs e)
        {
            All.Control.Icon icon = (All.Control.Icon)sender;
            int index             = (int)icon.Tag;

            cCarLocal.StatueCar cs = frmMain.mMain.AllCars.GetCarFromLineStationIndex(index);
            if (cs == null)
            {
                return;
            }
            lblTestNo.Text      = string.Format("{0}", cs.TestNo + 1);
            lblWorkStation.Text = string.Format("{0}", cs.WorkLineStation);
            lblTestBarCode.Text = cs.BarCode;
            if ((icon.Left + icon.Width + panTestNo.Width) <= panLine.Width)
            {
                panTestNo.Left = icon.Left + icon.Width;
            }
            else
            {
                panTestNo.Left = icon.Left - panTestNo.Width;
            }
            if ((icon.Top + icon.Height + panTestNo.Height) <= panLine.Height)
            {
                panTestNo.Top = icon.Top + icon.Height;
            }
            else
            {
                panTestNo.Top = icon.Top - panTestNo.Height;
            }
            panTestNo.Visible = true;
            panTestNo.BringToFront();
        }
        private void timFlush_Tick(object sender, EventArgs e)
        {
            blinkShow = !blinkShow;
            int index = 0;

            #region//刷新4M切换
            //刷新4M切换
            if (System.IO.File.Exists(string.Format("{0}\\Data\\Xml\\4M管理信息.txt", All.Class.FileIO.GetNowPath())))
            {
                string readValue = All.Class.FileIO.ReadFile(string.Format("{0}\\Data\\Xml\\4M管理信息.txt", All.Class.FileIO.GetNowPath()), Encoding.GetEncoding("GB2312"));
                if (readValue != "")
                {
                    if (!grp4M.Visible)
                    {
                        grp4M.Visible      = true;
                        pan4Box.Visible    = false;
                        lbl4MTitle.Visible = true;
                    }
                    string[] tmpValue = readValue.Split(new string[1] {
                        "\r\n"
                    }, StringSplitOptions.RemoveEmptyEntries);
                    if (old4M != readValue)
                    {
                        old4M = readValue;
                        lst4M.Items.Clear();
                        tmpValue.ToList().ForEach(
                            str =>
                        {
                            lst4M.Items.Add(str);
                        });
                    }
                    for (int i = 0; i < lblW.Length; i++)
                    {
                        for (int j = 0; j < tmpValue.Length; j++)
                        {
                            index = tmpValue[j].IndexOf(string.Format("W{0:D2}", i + 1));
                            if (index >= 0)
                            {
                                if (!blinkShow)
                                {
                                    lblW[i].ForeColor = Color.FromArgb(255, 40, 40, 40);
                                }
                                else
                                {
                                    lblW[i].ForeColor = Color.Yellow;
                                }
                                break;
                            }
                        }
                        if (index < 0)
                        {
                            lblW[i].ForeColor = Color.White;
                        }
                    }
                }
                else
                {
                    if (!pan4Box.Visible)
                    {
                        pan4Box.Visible    = true;
                        grp4M.Visible      = false;
                        lbl4MTitle.Visible = false;
                    }
                    itemTime.Value     = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now);
                    itemRun.Value      = string.Format("{0:HH:mm:ss}", new DateTime(0).Add(DateTime.Now - cMain.StartTime));
                    itemMaterial.Value = (frmMain.mMain.FlushSingleMaterial.Connect ? "连接正常" : "连接失败");
                }
            }
            else
            {
                All.Class.FileIO.Write(string.Format("{0}\\Data\\Xml\\4M管理信息.txt", All.Class.FileIO.GetNowPath()), "");
            }
            #endregion
            #region//总生产线PLC显示
            if (frmMain.mMain.AllMeterData.AllCommunite[0].Sons[0].Conn)
            {
                iconPlc.FillColor = Color.Green;
            }
            else
            {
                iconPlc.FillColor = (blinkShow ? Color.Purple : Color.FromArgb(255, 40, 40, 40));
            }
            #endregion
            #region//小车显示
            for (int i = 0; i < LittleStation.Length; i++)
            {
                if (frmMain.mMain.AllCars.AllStatueLineStation[i].HaveCar)
                {
                    if (frmMain.mMain.AllCars.AllStatueLineStation[i].Blink && !blinkShow)
                    {
                        LittleStation[i].FillColor = Color.FromArgb(255, 40, 40, 40);
                    }
                    else
                    {
                        LittleStation[i].FillColor = frmMain.mMain.AllCars.AllStatueLineStation[i].Color;
                    }
                }
                else
                {
                    LittleStation[i].FillColor = Color.FromArgb(255, 40, 40, 40);
                }
                statueCar = frmMain.mMain.AllCars.GetCarFromLineStationIndex(i + 1);
                if (statueCar == null)
                {
                    LittleStation[i].ShowNum = "";
                }
                else
                {
                    LittleStation[i].ShowNum = string.Format("{0}", statueCar.TestNo + 1);
                }
            }
            #endregion
            #region//工位屏显示
            for (int i = 0; i < McgsStation.Length; i++)
            {
                if (frmMain.mMain.AllPCs.AllMcgs.Mcgs[i].Connect)
                {
                    McgsStation[i].FillColor = Color.Green;
                }
                else
                {
                    if (!blinkShow)
                    {
                        McgsStation[i].FillColor = Color.FromArgb(255, 40, 40, 40);
                    }
                    else
                    {
                        McgsStation[i].FillColor = Color.Purple;
                    }
                }
            }
            #endregion
            #region//性能检显示
            for (int i = 0; i < TestStation.Length; i++)
            {
                if (!frmMain.mMain.FlushSingleTest.Connect[i] && !blinkShow)
                {
                    TestStation[i].FillColor = Color.FromArgb(255, 40, 40, 40);
                }
                else
                {
                    TestStation[i].FillColor = frmMain.mMain.FlushSingleTest.ShowColor[i];
                }
            }
            #region
            #region//其他工位,机器人,打包,绕膜等
            for (int i = 0; i < StationOther.Length; i++)
            {
                if (frmMain.mMain.AllCars.AllStatueOther[i].Blink && !blinkShow)
                {
                    StationOther[i].FillColor = Color.FromArgb(255, 40, 40, 40);
                }
                else
                {
                    StationOther[i].FillColor = frmMain.mMain.AllCars.AllStatueOther[i].Color;
                }
            }
            #endregion
            //折弯机
            if (frmMain.mMain.FlushSingleZheWang.Blink && !blinkShow)
            {
                iconZheWang.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                iconZheWang.FillColor = frmMain.mMain.FlushSingleZheWang.Color;
            }
            #endregion
            //抽空充注等爱华科的东西
            if (frmMain.mMain.FlushSingleChouKongChongZhu.BlinkOne && !blinkShow)
            {
                IconEmptyOne.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                IconEmptyOne.FillColor = frmMain.mMain.FlushSingleChouKongChongZhu.ColorOne;
            }
            if (frmMain.mMain.FlushSingleChouKongChongZhu.BlinkTwo && !blinkShow)
            {
                IconEmptyTwo.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                IconEmptyTwo.FillColor = frmMain.mMain.FlushSingleChouKongChongZhu.ColorTwo;
            }
            if (frmMain.mMain.FlushSingleChongHaiHuiShou.Blink && !blinkShow)
            {
                iconChongHaiHuiShou.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                iconChongHaiHuiShou.FillColor = frmMain.mMain.FlushSingleChongHaiHuiShou.Color;
            }
            if (frmMain.mMain.FlushSingleJianLou.Blink && !blinkShow)
            {
                iconHaiJian.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                iconHaiJian.FillColor = frmMain.mMain.FlushSingleJianLou.Color;
            }
            #endregion
            #region//注油机
            if (frmMain.mMain.FlushSingleOil.Blink && !blinkShow)
            {
                iconOil.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                iconOil.FillColor = frmMain.mMain.FlushSingleOil.ShowColor;
            }
            #endregion
            #region//冷凝器线体
            for (int i = 0; i < LengNinStation.Length; i++)
            {
                LengNinStation[i].FillColor = frmMain.mMain.AllCars.AllStatueLengNinQi.AllLengNinStation[i].Color;
            }
            if (frmMain.mMain.AllCars.AllStatueLengNinQi.Blink && !blinkShow)
            {
                iconLengNingQiPlc.FillColor = Color.FromArgb(255, 40, 40, 40);
            }
            else
            {
                iconLengNingQiPlc.FillColor = frmMain.mMain.AllCars.AllStatueLengNinQi.Color;
            }
            #endregion
            #region//用户登陆
            for (int i = 0; i < frmMain.mMain.FlushUserLogin.AllUserStatue.Length; i++)
            {
                if (lblUser[i] != null)
                {
                    lblUser[i].Visible = frmMain.mMain.FlushUserLogin.AllUserStatue[i].HaveUser;
                    if (frmMain.mMain.FlushUserLogin.AllUserStatue[i].LoginUser)
                    {
                        lblUser[i].ForeColor = Color.Green;
                    }
                    else if (!blinkShow)
                    {
                        lblUser[i].ForeColor = Color.FromArgb(255, 40, 40, 40);
                    }
                    else
                    {
                        lblUser[i].ForeColor = Color.Purple;
                    }
                }
                if (lblLine[i] != null)
                {
                    lblLine[i].Visible = frmMain.mMain.FlushUserLogin.AllUserStatue[i].HaveUser;
                }
            }
            for (int i = 0; i < frmMain.mMain.FlushUserLogin.LengNinUserStatue.Length; i++)
            {
                if (lblLengNinUser[i] != null)
                {
                    lblLengNinUser[i].Visible = frmMain.mMain.FlushUserLogin.LengNinUserStatue[i].HaveUser;
                    if (frmMain.mMain.FlushUserLogin.LengNinUserStatue[i].LoginUser)
                    {
                        lblLengNinUser[i].ForeColor = Color.Green;
                    }
                    else if (!blinkShow)
                    {
                        lblLengNinUser[i].ForeColor = Color.FromArgb(255, 40, 40, 40);
                    }
                    else
                    {
                        lblLengNinUser[i].ForeColor = Color.Purple;
                    }
                }
                if (lblLengNinLine[i] != null)
                {
                    lblLengNinLine[i].Visible = frmMain.mMain.FlushUserLogin.LengNinUserStatue[i].HaveUser;
                }
            }
            #endregion
        }