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();
 }
예제 #3
0
 private void InitializeSyncedSettings()
 {
     SyncedSettings = new DesktopSetting();
     SyncedSettingsManager = new SyncedSettingsManager();
 }