using System; using FastReport.Utils; namespace FastReport.Design.PageDesigners.Code { internal class FRXPageSettings { #region Fields private static bool FUseSpaces; private static bool enable; private static int FTabSize; #endregion #region Properties public static bool UseSpaces { get { return FUseSpaces; } set { FUseSpaces = value; } } public static bool Enable { get { return enable; } set { enable = value; } } public static int TabSize { get { return FTabSize; } set { FTabSize = value; } } #endregion #region Public Methods public static void SaveState() { var storage = new StorageService("Designer,FRXPage"); storage.SetBool("UseSpaces", UseSpaces); storage.SetBool("Enable", Enable); storage.SetInt("TabSize", TabSize); } static FRXPageSettings() { var storage = new StorageService("Designer,FRXPage"); UseSpaces = storage.GetBool("UseSpaces", true); Enable = storage.GetBool("Enable"); TabSize = storage.GetInt("TabSize", 2); } #endregion } }