Ejemplo n.º 1
0
 /// <summary>
 /// Attaches a window level event-handler: it receives every event for all elements of the page.
 /// You normally attaches it before loading the page HTML with <see cref="SciterWindowExtensions.LoadPage"/>
 /// You can only attach a single event-handler.
 /// </summary>
 public static bool TryAttachEventHandler(this SciterHost host, SciterEventHandler eventHandler)
 {
     return(host?.TryAttachEventHandlerInternal(eventHandler: eventHandler) == true);
 }
Ejemplo n.º 2
0
 internal EventHandlerRegistry(SciterEventHandler eventHandler, string name = null)
     : this(name : eventHandler.GetBehaviourName(behaviorName : name))
 {
     _eventHandler = eventHandler;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Attaches a window level event-handler: it receives every event for all elements of the page.
 /// You normally attaches it before loading the page HTML with <see cref="SciterWindowExtensions.LoadPage"/>
 /// You can only attach a single event-handler.
 /// </summary>
 public static SciterHost AttachEventHandler(this SciterHost host, SciterEventHandler eventHandler)
 {
     host?.AttachEventHandlerInternal(eventHandler: eventHandler);
     return(host);
 }