protected override void DeleteObject() { if (XtraMessageBox.Show("是否删除该客户", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK) { var client = new CRMServiceClient(); client.DeleteCustomer(m_customer); } base.DeleteObject(); }