Exemplo n.º 1
0
        /// <summary>
        /// SciterCallMethod - calls behavior specific method.
        /// </summary>
        public bool CallBehaviorMethod(Element he, BehaviorMethods methodId, out object result)
        {
            result = null;
            switch (methodId)
            {
                case BehaviorMethods.DoClick:
                    var methodParam = new METHOD_PARAMS() { methodID = (int)METHOD_PARAMS.BEHAVIOR_METHOD_IDENTIFIERS.DO_CLICK };
                    var res = SciterCallBehaviorMethod(he.Handle, ref methodParam);

                    if (res == ScDomResult.SCDOM_OK_NOT_HANDLED)
                        return false;

                    CheckResult(res);
                    return true;
            }

            return false;
        }
Exemplo n.º 2
0
        /// <summary>
        /// SciterCallMethod - calls behavior specific method.
        /// </summary>
        public bool CallBehaviorMethod(Element he, BehaviorMethods methodId, out object result)
        {
            result = null;
            switch (methodId)
            {
            case BehaviorMethods.DoClick:
                var methodParam = new METHOD_PARAMS()
                {
                    methodID = (int)METHOD_PARAMS.BEHAVIOR_METHOD_IDENTIFIERS.DO_CLICK
                };
                var res = SciterCallBehaviorMethod(he.Handle, ref methodParam);

                if (res == ScDomResult.SCDOM_OK_NOT_HANDLED)
                {
                    return(false);
                }

                CheckResult(res);
                return(true);
            }

            return(false);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Calls behavior specific method
        /// </summary>
        public bool CallBehaviorMethod(BehaviorMethods methodId)
        {
            var result = default(object);

            return(SciterDomApi.CallBehaviorMethod(this, methodId, out result));
        }
Exemplo n.º 4
0
 /// <summary>
 /// Calls behavior specific method
 /// </summary>
 public bool CallBehaviorMethod(BehaviorMethods methodId)
 {
     var result = default(object);
     return SciterDomApi.CallBehaviorMethod(this, methodId, out result);
 }