Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="coauthMergeObjects"></param>
        public void AfterDocumentMerge([In, MarshalAs(UnmanagedType.IDispatch)] object coauthMergeObjects)
        {
            if (!Validate("AfterDocumentMerge"))
            {
                Invoker.ReleaseParamsArray(coauthMergeObjects);
                return;
            }

            NetOffice.VisioApi.IVCoauthMergeEvent newcoauthMergeObjects = Factory.CreateEventArgumentObjectFromComProxy(EventClass, coauthMergeObjects) as NetOffice.VisioApi.IVCoauthMergeEvent;
            object[] paramsArray = new object[1];
            paramsArray[0] = newcoauthMergeObjects;
            EventBinding.RaiseCustomEvent("AfterDocumentMerge", ref paramsArray);
        }
Exemplo n.º 2
0
        public void AfterDocumentMerge([In, MarshalAs(UnmanagedType.IDispatch)] object coauthMergeObjects)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("AfterDocumentMerge");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(coauthMergeObjects);
                return;
            }

            NetOffice.VisioApi.IVCoauthMergeEvent newcoauthMergeObjects = Factory.CreateObjectFromComProxy(_eventClass, coauthMergeObjects) as NetOffice.VisioApi.IVCoauthMergeEvent;
            object[] paramsArray = new object[1];
            paramsArray[0] = newcoauthMergeObjects;
            _eventBinding.RaiseCustomEvent("AfterDocumentMerge", ref paramsArray);
        }