In this example, the designer dialog fires a custom event, which the UI registers for.

This is the UI.

This is the dialog.

Add Text Box
Name: Label:
Add Check Box
Name: Label: Value: