Пример #1
0
        private void LoadSettings()
        {
            config = Config.GetInstance;
            GlobalKeyboardHook.SignKeyDownHandler(KeyDownHandler);
            combo_functions.ItemsSource = functions;
            combo_keys.ItemsSource      = Enum.GetValues(typeof(Forms.Keys));

            check_topmost.IsChecked = (bool)Boolean.Parse(config.GetConfig(ConfigKey.Topmost).ToString());
            SetTimeSetting(txt_jumptime, combo_unit, config.GetConfig(ConfigKey.JumpTime));
            SetTimeSetting(txt_pausetime, combo_pauseunit, config.GetConfig(ConfigKey.PauseTime));
            check_intelligent_playing.IsChecked = (bool)Boolean.Parse(config.GetConfig(ConfigKey.IntelligentPlaying).ToString());

            dgrid_hotkeys.ItemsSource = config.HotKeys;
        }