private void btnSave_Click(object sender, EventArgs e) { if (ValidateData()) { FtpConfigEntity ftpConfig = BuildFtpConfigEntity(); bool isSuccess = ftpBll.InsertOrUpdate(ftpConfig); if (isSuccess) { base.ShowMessage("FTP配置成功"); this.Close(); } else { base.ShowErrorMessage("FTP配置失败"); } } }