private void btnConnSave_Click(object sender, EventArgs e) { ConfigModel model = GetLVSelectConfigModel(); if (model.ConnType.IsNullOrEmpty() || model.ConnString.IsNullOrEmpty() || model.ConnName.IsNullOrEmpty()) { UIMessageTip.ShowError("没有输入连接字符串、连接名或数据库类型", 1000, true); return; } if (model.Guid.IsNullOrEmpty()) { model.Guid = Guid.NewGuid().ToString(); jsonUtil.Add(model); } else { jsonUtil.Edit(model); } InitListView(); }