| | |
| | | |
| | | VisualStudioToolStripExtender extender = new VisualStudioToolStripExtender(); |
| | | extender.SetStyle(menuMain, VisualStudioToolStripExtender.VsVersion.Vs2015, theme); |
| | | |
| | | |
| | | InitialMenu(MenuFormFactory.MenuFrmTypeDict, ""); |
| | | |
| | | //MenuFormFactory.MenuFrmTypeDict.ToList().ForEach(t => |
| | |
| | | |
| | | 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 |
| | | |