this sample demonstrates creating your own event handlers and how to use them.
App ->
{
[String] name: "Jason";
GreetUser();
scope EventDeclarations
{
[Event] Greeted;
}
void GreetUser()
{
Console.WriteLine("Hello, " + name + ".");
Greeted();
}
scope Events
{
void Greeted()
{
comment: Wait for the user to exit manually.
Console.WaitForExitKey();
}
}
}