Interface used to allow the creator of a dialog to run some code when the dialog is shown.
This method will be invoked when the dialog is shown.