public void GroupAdd([In, MarshalAs(UnmanagedType.IDispatch)] object newGroup)
        {
            if (!Validate("GroupAdd"))
            {
                Invoker.ReleaseParamsArray(newGroup);
                return;
            }

            NetOffice.OutlookApi.OutlookBarGroup newNewGroup = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.OutlookBarGroup>(EventClass, newGroup, NetOffice.OutlookApi.OutlookBarGroup.LateBindingApiWrapperType);
            object[] paramsArray = new object[1];
            paramsArray[0] = newNewGroup;
            EventBinding.RaiseCustomEvent("GroupAdd", ref paramsArray);
        }
Ejemplo n.º 2
0
        public void GroupAdd([In, MarshalAs(UnmanagedType.IDispatch)] object newGroup)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("GroupAdd");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(newGroup);
                return;
            }

            NetOffice.OutlookApi.OutlookBarGroup newNewGroup = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, newGroup) as NetOffice.OutlookApi.OutlookBarGroup;
            object[] paramsArray = new object[1];
            paramsArray[0] = newNewGroup;
            _eventBinding.RaiseCustomEvent("GroupAdd", ref paramsArray);
        }
        public void BeforeGroupSwitch([In, MarshalAs(UnmanagedType.IDispatch)] object toGroup, [In][Out] ref object cancel)
        {
            if (!Validate("BeforeGroupSwitch"))
            {
                Invoker.ReleaseParamsArray(toGroup, cancel);
                return;
            }

            NetOffice.OutlookApi.OutlookBarGroup newToGroup = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.OutlookBarGroup>(EventClass, toGroup, NetOffice.OutlookApi.OutlookBarGroup.LateBindingApiWrapperType);
            object[] paramsArray = new object[2];
            paramsArray[0] = newToGroup;
            paramsArray.SetValue(cancel, 1);
            EventBinding.RaiseCustomEvent("BeforeGroupSwitch", ref paramsArray);

            cancel = ToBoolean(paramsArray[1]);
        }
Ejemplo n.º 4
0
        public void BeforeGroupRemove([In, MarshalAs(UnmanagedType.IDispatch)] object group, [In][Out] ref object cancel)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeGroupRemove");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(group, cancel);
                return;
            }

            NetOffice.OutlookApi.OutlookBarGroup newGroup = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, group) as NetOffice.OutlookApi.OutlookBarGroup;
            object[] paramsArray = new object[2];
            paramsArray[0] = newGroup;
            paramsArray.SetValue(cancel, 1);
            _eventBinding.RaiseCustomEvent("BeforeGroupRemove", ref paramsArray);

            cancel = (bool)paramsArray[1];
        }