public bool InvokeRemovePhone(int phoneType, string phoneNo, string message) { bool result = false; if (CloseForCountdown) { //当前窗口和电话不对应 MessageBoxAdapter.ShowError("当前窗口马上将自动关闭,无法响应您的操作"); return(result); } if (RemoveCall != null) { RemoveCallEventArgs rpe = new RemoveCallEventArgs { CallServiceId = PageData.CallServiceId, PhoneType = phoneType, PhoneNo = phoneNo, Message = message }; RemoveCall(this, rpe); if (!rpe.Cancel) { //没有取消,则记录日志 result = true; } } return(result); }
public bool InvokeRemovePhone(int phoneType, string phoneNo, string message) { bool result = false; if (RemoveCall != null) { RemoveCallEventArgs rpe = new RemoveCallEventArgs { CallServiceId = PageData.CallServiceId, PhoneType = phoneType, PhoneNo = phoneNo, Message = message }; RemoveCall(this, rpe); if (!rpe.Cancel) { //没有取消,则记录日志 result = true; } } return(result); }