private void CacheDesktopSetting(DesktopSetting desktopSetting) { if (string.IsNullOrEmpty(desktopSetting.MachineId)) { _globalSettings = desktopSetting; } else { lock (_desktopSettings) { _desktopSettings[desktopSetting.MachineId] = desktopSetting; } } }
private void OnDesktopSettingsUpdated(DesktopSetting desktopSetting) { CacheDesktopSetting(desktopSetting); UpdateEffectiveSettings(); }
private void InitializeSyncedSettings() { SyncedSettings = new DesktopSetting(); SyncedSettingsManager = new SyncedSettingsManager(); }