Exemple #1
0
        public void ItemCheck([In, MarshalAs(UnmanagedType.IDispatch)] object item)
        {
            if (!Validate("ItemCheck"))
            {
                Invoker.ReleaseParamsArray(item);
                return;
            }

            NetOffice.MSComctlLibApi.ListItem newItem = Factory.CreateKnownObjectFromComProxy <NetOffice.MSComctlLibApi.ListItem>(EventClass, item, NetOffice.MSComctlLibApi.ListItem.LateBindingApiWrapperType);
            object[] paramsArray = new object[1];
            paramsArray[0] = newItem;
            EventBinding.RaiseCustomEvent("ItemCheck", ref paramsArray);
        }
        public void ItemCheck([In, MarshalAs(UnmanagedType.IDispatch)] object item)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("ItemCheck");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(item);
                return;
            }

            NetOffice.MSComctlLibApi.ListItem newItem = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, item) as NetOffice.MSComctlLibApi.ListItem;
            object[] paramsArray = new object[1];
            paramsArray[0] = newItem;
            _eventBinding.RaiseCustomEvent("ItemCheck", ref paramsArray);
        }