领胜LDS 键盘AOI检测项目
wells.liu
2020-07-04 642cd31f0d1586a2a5ca6f9a3b3364725f4f1ecd
src/Bro.UI.Config/MainFrm.cs
@@ -32,7 +32,7 @@
            VisualStudioToolStripExtender extender = new VisualStudioToolStripExtender();
            extender.SetStyle(menuMain, VisualStudioToolStripExtender.VsVersion.Vs2015, theme);
            InitialMenu(MenuFormFactory.MenuFrmTypeDict, "");
            //MenuFormFactory.MenuFrmTypeDict.ToList().ForEach(t =>
@@ -491,15 +491,18 @@
        private void Device_OnDeviceStateChanged(IDevice device, EnumHelper.DeviceState currentState)
        {
            for (int i = 1; i < ststripDevices.Items.Count; i++)
            ststripDevices.BeginInvoke(new Action(() =>
            {
                if ((ststripDevices.Items[i].Tag as IDevice)?.Id == device.Id)
                for (int i = 1; i < ststripDevices.Items.Count; i++)
                {
                    ststripDevices.Items[i].BackColor = currentState.GetEnumSelectedColor();
                    ststripDevices.Items[i].ForeColor = currentState.GetEnumSelectedFontColor();
                    break;
                    if ((ststripDevices.Items[i].Tag as IDevice)?.Id == device.Id)
                    {
                        ststripDevices.Items[i].BackColor = currentState.GetEnumSelectedColor();
                        ststripDevices.Items[i].ForeColor = currentState.GetEnumSelectedFontColor();
                        break;
                    }
                }
            }
            }));
        }
        #endregion