Example #1
0
        public void SelectedAccountChange([In, MarshalAs(UnmanagedType.IDispatch)] object selectedAccount)
        {
            if (!Validate("SelectedAccountChange"))
            {
                Invoker.ReleaseParamsArray(selectedAccount);
            }

            NetOffice.OutlookApi.Account newSelectedAccount = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.Account>(EventClass, selectedAccount, NetOffice.OutlookApi.Account.LateBindingApiWrapperType);
            object[] paramsArray = new object[1];
            paramsArray[0] = newSelectedAccount;
            EventBinding.RaiseCustomEvent("SelectedAccountChange", ref paramsArray);
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="account"></param>
        public void AutoDiscoverComplete([In, MarshalAs(UnmanagedType.IDispatch)] object account)
        {
            if (!Validate("AutoDiscoverComplete"))
            {
                Invoker.ReleaseParamsArray(account);
                return;
            }

            NetOffice.OutlookApi.Account newAccount = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.Account>(EventClass, account, typeof(NetOffice.OutlookApi.Account));
            object[] paramsArray = new object[1];
            paramsArray[0] = newAccount;
            EventBinding.RaiseCustomEvent("AutoDiscoverComplete", ref paramsArray);
        }
Example #3
0
        public void SelectedAccountChange([In, MarshalAs(UnmanagedType.IDispatch)] object selectedAccount)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("SelectedAccountChange");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(selectedAccount);
                return;
            }

            NetOffice.OutlookApi.Account newSelectedAccount = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, selectedAccount) as NetOffice.OutlookApi.Account;
            object[] paramsArray = new object[1];
            paramsArray[0] = newSelectedAccount;
            _eventBinding.RaiseCustomEvent("SelectedAccountChange", ref paramsArray);
        }