private static void SetGlobalFreeze(bool shouldFreeze) { GlobalSetting globalSetting = GlobalSettingLogic.GetItem(); if (globalSetting == null) { globalSetting = new GlobalSetting(); } globalSetting.FreezeAllInstallations = shouldFreeze; GlobalSettingLogic.Save(globalSetting); }
public GlobalSetting GetGlobalSettingItem() { return(Invoke(() => GlobalSettingLogic.GetItem())); }