public AppSettingsService(SecureMemoAppSettings defaultAppSettings, IniConfigFileManager iniConfigFileManager, string iniConfigFilePath) { _defaultAppSettings = defaultAppSettings; _iniConfigFileManager = iniConfigFileManager; _iniConfigFilePath = iniConfigFilePath; Settings = ConfigHelper.GetDefaultSettings(); CreateAppDataDirectoryIfDirNotFound(ConfigSpecificSettings.GetSettingsFolderPath(false)); }
public static SecureMemoAppSettings GetDefaultSettings() { var appSettings = new SecureMemoAppSettings { AlwaysOntop = ALLWAYS_ONTOP, ApplicationSaltValue = CreateApplicationSalt(), DefaultEmptyTabPages = EMPTY_TAB_PAGES }; var fontSettings = new SecureMemoFontSettings { FontFamily = new FontFamily("Courier New"), FontSize = 9.75f, Style = FontStyle.Regular }; fontSettings.FontFamilyName = fontSettings.FontFamily.GetName(0); appSettings.FontSettings = fontSettings; appSettings.MainWindowHeight = WIN_HEIGHT; appSettings.MainWindowWith = WIN_WIDTH; appSettings.PasswordDerivedString = null; return(appSettings); }
public static SecureMemoAppSettings GetDefaultSettings() { var appSettings = new SecureMemoAppSettings { AlwaysOnTop = AllwaysOnTop, ApplicationSaltValue = CreateApplicationSalt(), DefaultEmptyTabPages = EmptyTabPages }; var fontSettings = new SecureMemoFontSettings { FontFamilyName = "Arial", FontSize = 12f, Style = FontStyle.Regular }; fontSettings.FontFamilyName = fontSettings.FontFamily.GetName(0); appSettings.FontSettings = fontSettings; appSettings.MainWindowHeight = WinHeight; appSettings.MainWindowWith = WinWidth; appSettings.PasswordDerivedString = null; return(appSettings); }