public static void SaveParameters(String key, String paraValue) { UpdateResult result = GlobalCache.ParameterConfig_OnChange(key, paraValue); switch (result) { case UpdateResult.Success: //重新加载系统配置信息 break; case UpdateResult.Error: //GlobalMessageBox.Show("内部错误!"); throw new Exception("内部错误!"); break; default: break; } }