Beispiel #1
0
 public GlobalSetting SaveGlobalSetting(GlobalSetting globalSetting)
 {
     return(Invoke(() =>
     {
         GlobalSettingLogic.Save(globalSetting);
         return globalSetting;
     }));
 }
Beispiel #2
0
        private static void SetGlobalFreeze(bool shouldFreeze)
        {
            GlobalSetting globalSetting = GlobalSettingLogic.GetItem();

            if (globalSetting == null)
            {
                globalSetting = new GlobalSetting();
            }

            globalSetting.FreezeAllInstallations = shouldFreeze;

            GlobalSettingLogic.Save(globalSetting);
        }