コード例 #1
0
        private void ConfigChanged(object sender, ConfigEventArgs eventArgs)
        {
            if (eventArgs.Data == ConfigProperties.IsSoundEnabled || eventArgs.Data == ConfigProperties.SoundSet)
            {
                Load();
            }

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

            if (eventArgs.Data == ConfigProperties.EngineControl)
            {
                CheckEngine();
            }
        }