Skip to content

Commit fbca558

Browse files
committed
Added example
1 parent 1bdd97f commit fbca558

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Examples/DeveloperExample/Program.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,19 @@ public MyWindowEventHandler ( nint window, SciterAPIHost host ) : base ( window,
4242
_devConsole = new DeveloperConsole ( host, host.MainWindow );
4343
}
4444

45+
public override EventBehaviourGroups BeforeRegisterEvent () {
46+
return EventBehaviourGroups.HANDLE_BEHAVIOR_EVENT;
47+
}
48+
4549
public override void BehaviourEvent ( BehaviourEvents cmd, nint heTarget, nint he, nint reason, SciterValue data, string name ) {
4650
if ( cmd == BehaviourEvents.DOCUMENT_READY ) {
47-
48-
if ( Host.CloseWindow ( Host.MainWindow, "10" ) ) {
49-
50-
}
5151
}
5252
}
5353

54+
public override void HandleInitializationEvent ( InitializationEvents command ) {
55+
56+
}
57+
5458
}
5559

5660
public class TestModel : IPseudoSomModel {

0 commit comments

Comments
 (0)