public void ReloadStatesFromConfig() { var newMusicValue = Config.GetSoundSystemMode(); switch (newMusicValue) { case SoundSystemConfig.MusicAndSound: case SoundSystemConfig.None: SoundSystemButtonState.SetText("Звук/Муз"); break; case SoundSystemConfig.Music: SoundSystemButtonState.SetText("Музыка"); break; case SoundSystemConfig.Sound: SoundSystemButtonState.SetText("Звук"); break; } SoundSystemButtonState.SetActivation(newMusicValue != SoundSystemConfig.None); NextColorsButtonState.SetActivation(Config.GetNextColorsValue()); PathButtonState.SetActivation(Config.GetPathValue()); }