private void SwitchDatabase() { string currentName = "CurrentDatabase"; string nextName = "NextDatabase"; string currentDatabase = _config.GetItemByName(currentName); string nextDatabase = _config.GetItemByName(nextName); string temp = currentDatabase; _config.ChangeItemByName(currentName, nextDatabase); _config.ChangeItemByName(nextName, temp); }