private void _cco_ErrorEvent(int ResultCode, int ResultCodeExtended, int ErrorLocus, ref int pErrorResponse) { if (this.ErrorEvent != null) { ErrorCode eCode = (ErrorCode)InteropEnum <ErrorCode> .ToEnumFromInteger(ResultCode); ErrorLocus eLocus = (ErrorLocus)InteropEnum <ErrorLocus> .ToEnumFromInteger(ErrorLocus); ErrorResponse eResponse = (ErrorResponse)InteropEnum <ErrorResponse> .ToEnumFromInteger(pErrorResponse); DeviceErrorEventArgs eEE = new DeviceErrorEventArgs(eCode, ResultCodeExtended, eLocus, eResponse); ErrorEvent(this, eEE); pErrorResponse = (int)eEE.ErrorResponse; } }