Beispiel #1
0
        public void SaveSettings()
        {
            _ini.SetSetting("General", "ShowConsole", _showconsole.ToString());
            _ini.SetSetting("General", "LogRequests", _logRequests.ToString());
            _ini.SetSetting("General", "CacheData", _cacheData.ToString());
            _ini.SetSetting("General", "Driver", _driver.ToString());
            _ini.SetSetting("MySQL", "Host", _mysqlHost);
            _ini.SetSetting("MySQL", "Port", _mysqlPort.ToString());
            _ini.SetSetting("MySQL", "User", _mysqlUser);
            _ini.SetSetting("MySQL", "Password", _mysqlPassword);
            _ini.SetSetting("MySQL", "Database", _mysqlDatabase);
            _ini.SetSetting("Sqlite", "DBFile", _sqlitefile);

            _ini.Save();
            Logger.Log("Settings Saved", Logger.LogType.Info, typeof(Manager));
        }