/// <summary> /// SetUp Settings in this Project - needs Type of Setting to Set Up /// </summary> /// <typeparam name="T">Setting to set up</typeparam> public static void SetUp <T>() where T : SettingsTemplate { //Create a Setting instance, apply default settings, look for user settings. if they exist, load them. //Save everything to be safe & Set up QuickAccess Properties _settings = Activator.CreateInstance <T>(); _settings.SetDefaultSettings(); if (_settings.CheckForUserSettings()) { _settings.LoadUserSettings(); } _settings.SaveUserSettings(); _isSetUp = true; _settings.SetQuickAccessProperties(); }
/// <summary> /// Save Settings as Specified in Settings-Class /// </summary> public static void SaveSetting() { CheckSetUp(); _settings.SaveUserSettings(); }