OnClose callback. Calls a function with the dialog result as parameter.
Closes the dialog. Implementations should trigger OnClose.
Shows the dialog
Show as modal
OnClose callback. Calls a function with the dialog result as parameter.