public void Update(bool write = true, SQLiteConnectionUser conn = null) // call at start to populate above { try { _useNotifyIcon = SQLiteConnectionUser.GetSettingBool("UseNotifyIcon", false, conn); _EDSMLog = SQLiteConnectionUser.GetSettingBool("EDSMLog", false, conn); _orderrowsinverted = SQLiteConnectionUser.GetSettingBool("OrderRowsInverted", false, conn); _minimizeToNotifyIcon = SQLiteConnectionUser.GetSettingBool("MinimizeToNotifyIcon", false, conn); _keepOnTop = SQLiteConnectionUser.GetSettingBool("KeepOnTop", false, conn); _displayUTC = SQLiteConnectionUser.GetSettingBool("DisplayUTC", false, conn); _clearCommodities = SQLiteConnectionUser.GetSettingBool("ClearCommodities", false, conn); _clearMaterials = SQLiteConnectionUser.GetSettingBool("ClearMaterials", false, conn); _autoLoadPopouts = SQLiteConnectionUser.GetSettingBool("AutoLoadPopouts", false, conn); _autoSavePopouts = SQLiteConnectionUser.GetSettingBool("AutoSavePopouts", false, conn); _defaultvoicedevice = SQLiteConnectionUser.GetSettingString("VoiceAudioDevice", "Default", conn); _defaultwavedevice = SQLiteConnectionUser.GetSettingString("WaveAudioDevice", "Default", conn); EliteDangerousCore.EDCommander.Load(write, conn); UserPaths.Load(conn); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine("EDDConfig.Update()" + ":" + ex.Message); System.Diagnostics.Trace.WriteLine(ex.StackTrace); } }
public Paths(IEngineEnvironmentSettings environmentSettings) { _environmentSettings = environmentSettings; Global = new GlobalPaths(this); User = new UserPaths(this); }