private void SwitchColorMode(ColorModeSwitch colorMode) { if (colorModeSelected.mode != colorMode.mode) { colorModeSelected.component.BackColor = colorModeInactive; SetColorModeSelected(colorMode); } }
private void SetColorModeSelected(ColorModeSwitch colorMode) { colorModeSelected = colorMode; colorModeSelected.component.BackColor = colorModeActive; }