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)); }
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)); }
public SciterValue EvaluateScript(SciterValue input) { var result = Host.EvalScript($"{input.AsString()}"); return(result); }
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)); }