private void Settings_SettingChanged(object sender, SettingChangedEventArgs e)
 {
     if (e.Keys.Contains(SettingKeys.Emk))
     {
         ReloadFromSettings();
     }
 }
 private void OnSettingChanged(SettingChangedEventArgs e)
 {
     var copy = SettingChanged;
     if (copy != null)
     {
         copy(this, e);
     }
 }
        private void SettingsService_OnSettingChanged(object sender, SettingChangedEventArgs settingChangedEventArgs)
        {
            if (settingChangedEventArgs.Keys.Contains(SettingKeys.JobsConfigurationKey))
            {
                IEnumerable<string> oldConfig = _enabledJobs;
                _enabledJobs = RetrieveEnabledJobs();

                IEnumerable<string> disabledJobs = oldConfig.Except(_enabledJobs);
                DisposeJobs(disabledJobs, true);

                IEnumerable<string> enabledJobs = _enabledJobs.Except(oldConfig);
                InitializeAndAddJobs(enabledJobs);
            }
        }
        private void _settings_SettingChanged(object sender, SettingChangedEventArgs e)
        {
            List<string> changedKeys = new List<string>();
            foreach (SettingKey key in e.Keys)
            {
                if (key.Equals(FaxSettingKeys.AlarmFaxParserAlias))
                {
                    changedKeys.Add("AlarmfaxParser");
                }
                else if (key.Equals(FaxSettingKeys.OcrPath))
                {
                    changedKeys.Add("OCR.Path");
                }
                else if ((key.Equals(FaxSettingKeys.FaxPath) || key.Equals(FaxSettingKeys.AnalysisPath) || key.Equals(FaxSettingKeys.ArchivePath)) && !changedKeys.Contains("FaxPaths"))
                {
                    changedKeys.Add("FaxPaths");
                }
            }

            foreach (string key in changedKeys)
            {
                OnPropertyChanged(key);
            }

        }