private void btn_delhistory_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("确定要删除所有的历史数据?", "系统提示!", MessageBoxButtons.OKCancel, MessageBoxIcon.Question); if (result == DialogResult.Cancel) { return; } int a = objPatientService.DeletePatientHisInfo(); int b = objPatientBodyInfoService.DeletePatientHisBodyInfo(); if (a > 0) { MessageBox.Show("删除成功!", "系统提示"); } }