public GlobalSetting SaveGlobalSetting(GlobalSetting globalSetting) { return(Invoke(() => { GlobalSettingLogic.Save(globalSetting); return globalSetting; })); }
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())); }