Exemple #1
0
        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);
                _focusOnNewSystem     = SQLiteConnectionUser.GetSettingBool("FocusOnNewSystem", 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);

                EDCommander.Load(write, conn);
                UserPaths.Load(conn);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine("EDDConfig.Update()" + ":" + ex.Message);
                System.Diagnostics.Trace.WriteLine(ex.StackTrace);
            }
        }