public void Save() { lock (lockable) { LocalSettingsHelper.GetContainer(SETTINGS_CONTAINER).WriteGroupSettings(this); SettingsChanged?.Invoke(null, EventArgs.Empty); } }
private static Settings Load() { try { if (LocalSettingsHelper.GetContainer(SETTINGS_CONTAINER).ReadGroupSettings(out Settings s)) { return(s); } else { return(new Settings()); } } catch (Exception) { return(new Settings()); } }