Exemple #1
0
        public void ResetDatabases()
        {
            string password = Settings.Default.Password;

            if (password.Length > 0)
            {
                password = SecurityExtensions.DecryptString(password, Encoding.Unicode.GetBytes(Settings.Default.Entropy)).ToInsecureString();
            }

            worldDatabase  = new WorldDatabase(Settings.Default.Host, Settings.Default.Port, Settings.Default.User, password, Settings.Default.Database);
            sqliteDatabase = new SQLiteDatabase("Resources/sqlite_database.db");
        }