using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; namespace SofaBasicContainer { public static class Parameters { public class PSettings : ApplicationSettingsBase { [UserScopedSetting] public string CurrentPerspective { get { if (this["CurrentPerspective"] != null) return ((string)this["CurrentPerspective"]); return ""; } set { this["CurrentPerspective"] = value; } } [UserScopedSetting] public string CurrentCustomTheme { get { if (this["CurrentCustomTheme"] != null) return ((string)this["CurrentCustomTheme"]); return ""; } set { this["CurrentCustomTheme"] = value; } } [UserScopedSetting] public string CurrentStandardTheme { get { if (this["CurrentStandardTheme"] != null) return ((string)this["CurrentStandardTheme"]); return ""; } set {this["CurrentStandardTheme"] = value; } } [UserScopedSetting] public string CurrentThemeColor { get { if (this["CurrentThemeColor"] != null) return ((string)this["CurrentThemeColor"]); return ""; } set { this["CurrentThemeColor"] = value; } } } private static PSettings defaultInstance = ((PSettings)(ApplicationSettingsBase.Synchronized(new PSettings()))); public static PSettings Default { get { return defaultInstance; } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)