Click event listener for the ok button
The constructor
A reference to the dialog
Event listener method