public DialogResult showDialog()
public DialogResult showDialog(IWindow iwsowner)
Shows this form as a modal dialog, where the owner (sometimes called the parent) is disabled until the dialog is dismissed. This function does not return until the dialog is dismissed. To dismiss the dialog, hide or close it. Closing a modal dialog does not dispose of its underlying resources, so the dispose method should be called.
If the IWindow owner (usually a Form) is not specified, the application's currently active window is used as the owner.