Choose the desired DialogResult, then close the dialog.