Пример #1
0
        public void Reload()
        {
            ResetToDefaults();

            lock (_repositorySync)
            {
                if (_repository == null)
                {
                    Log.Warning("Settings repository is not set");
                }

                if (_repository != null)
                {
                    SearchMarkBorderColor = _repository.GetColorSetting("SearchMarkBorderColor", SearchMarkBorderColor);

                    FreezeMark1BorderColor = _repository.GetColorSetting("FreezeMark1BorderColor", FreezeMark1BorderColor);
                    FreezeMark2BorderColor = _repository.GetColorSetting("FreezeMark2BorderColor", FreezeMark2BorderColor);
                    FreezeMark3BorderColor = _repository.GetColorSetting("FreezeMark3BorderColor", FreezeMark3BorderColor);

                    FreezeMark1Hotkey = _repository.GetSetting("FreezeMark1Hotkey", FreezeMark1Hotkey);
                    FreezeMark2Hotkey = _repository.GetSetting("FreezeMark2Hotkey", FreezeMark2Hotkey);
                    FreezeMark3Hotkey = _repository.GetSetting("FreezeMark3Hotkey", FreezeMark3Hotkey);

                    FilledMarks = _repository.GetBoolSetting("FilledMarks", FilledMarks);

                    CaseSensitiveSearch  = _repository.GetBoolSetting("CaseSensitiveSearch", CaseSensitiveSearch);
                    SearchWholeWordsOnly = _repository.GetBoolSetting("SearchWholeWordsOnly", SearchWholeWordsOnly);
                }
            }
        }