public void onchange() { Delegate[] recipients = EventBinding.GetEventRecipients("onchange"); if( (true == EventClass.IsCurrentlyDisposing) || (recipients.Length == 0) ) { Invoker.ReleaseParamsArray(); return; } object[] paramsArray = new object[0]; EventBinding.RaiseCustomEvent("onchange", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="page"></param> /// <param name="count"></param> public void MouseWheel([In] object page, [In] object count) { if (!Validate("MouseWheel")) { Invoker.ReleaseParamsArray(page, count); return; } Delegate[] recipients = EventBinding.GetEventRecipients("MouseWheel"); if ((true == EventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(page, count); return; } bool newPage = ToBoolean(page); Int32 newCount = ToInt32(count); object[] paramsArray = new object[2]; paramsArray[0] = newPage; paramsArray[1] = newCount; EventBinding.RaiseCustomEvent("MouseWheel", ref paramsArray); }