/// <summary> /// Obtain a default initialized ApplicationSettings object. /// </summary> public static SettingsData GetDefault() { SettingsData appSettings = new SettingsData(); appSettings.ScreenWidth = 1280; appSettings.ScreenHeight = 768; appSettings.MultiThreading = true; return appSettings; }
/// <summary> /// Initializes the globally accessible Settings class with a data object. /// </summary> /// <param name="data"></param> public static void Initialize(SettingsData data) { ScreenWidth = data.ScreenWidth; ScreenHeight = data.ScreenHeight; MultiThreading = data.MultiThreading; }