示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="ruleSet"></param>
        public void RuleSetValidated([In, MarshalAs(UnmanagedType.IDispatch)] object ruleSet)
        {
            if (!Validate("RuleSetValidated"))
            {
                Invoker.ReleaseParamsArray(ruleSet);
                return;
            }

            NetOffice.VisioApi.IVValidationRuleSet newRuleSet = Factory.CreateEventArgumentObjectFromComProxy(EventClass, ruleSet) as NetOffice.VisioApi.IVValidationRuleSet;
            object[] paramsArray = new object[1];
            paramsArray[0] = newRuleSet;
            EventBinding.RaiseCustomEvent("RuleSetValidated", ref paramsArray);
        }
示例#2
0
        public void RuleSetValidated([In, MarshalAs(UnmanagedType.IDispatch)] object ruleSet)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("RuleSetValidated");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(ruleSet);
                return;
            }

            NetOffice.VisioApi.IVValidationRuleSet newRuleSet = Factory.CreateObjectFromComProxy(_eventClass, ruleSet) as NetOffice.VisioApi.IVValidationRuleSet;
            object[] paramsArray = new object[1];
            paramsArray[0] = newRuleSet;
            _eventBinding.RaiseCustomEvent("RuleSetValidated", ref paramsArray);
        }
示例#3
0
 public void Validate(NetOffice.VisioApi.IVValidationRuleSet ruleSet)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(ruleSet);
     Invoker.Method(this, "Validate", paramsArray);
 }