private void ConfigChanged(object sender, ConfigEventArgs eventArgs) { if (eventArgs.Data == ConfigProperties.IsSoundEnabled || eventArgs.Data == ConfigProperties.SoundSet) { Load(); } if (eventArgs.Data == ConfigProperties.EngineControl) { CheckEngine(); } }
void Instance_OnChanged(object sender, ConfigEventArgs e) { if (e.Data != ConfigProperties.Scale) return; StyleFactory.Scale = LaunchCountdownConfig.Instance.Info.Scale; StyleFactory.Reload(); WindowStyle = StyleFactory.MainWindowStyle; }