예제 #1
0
        protected override bool OnEvent(SciterElement sourceElement, SciterElement targetElement,
                                        BehaviorEvents type, IntPtr reason, SciterValue data, string eventName)
        {
            if (type == BehaviorEvents.DocumentReady)
            {
                //Host.ConnectToInspector();
            }

            _logger?.LogTrace(
                "{NameOfMethod}(sourceElement: {SourceElement}; targetElement: {TargetElement}; type: {Type}; data: {DataString}; eventName: {EventName})",
                nameof(OnEvent), sourceElement?.Tag, targetElement?.Tag, type, data.AsString(), eventName);

            return(base.OnEvent(sourceElement, targetElement, type, reason, data, eventName));
        }
예제 #2
0
 protected override bool OnEvent(SciterElement sourceElement, SciterElement targetElement,
                                 BehaviorEvents type, IntPtr reason, SciterValue data, string eventName)
 {
     _logger?.LogDebug($"{nameof(OnEvent)}: {nameof(type)}: {type}; {nameof(eventName)}: {eventName}; {nameof(data)}: {data.AsString()}");
     return(base.OnEvent(sourceElement, targetElement, type, reason, data, eventName));
 }
예제 #3
0
        public SciterValue EvaluateScript(SciterValue input)
        {
            var result = Host.EvalScript($"{input.AsString()}");

            return(result);
        }
예제 #4
0
        protected override bool OnEvent(SciterElement sourceElement, SciterElement targetElement,
                                        BehaviorEvents type, IntPtr reason, SciterValue data, string eventName)
        {
            //if (type == BehaviorEvents.DocumentReady)
            //	this.Host.ConnectToInspector();

            _logger?.LogDebug($"{nameof(OnEvent)}: {nameof(type)}: {type}; {nameof(eventName)}: {eventName}; {nameof(data)}: {data.AsString()}");
            return(base.OnEvent(sourceElement, targetElement, type, reason, data, eventName));
        }