这在下面链接的问题中说明,但我在这里提到
Programming WPF (Chris Sells,Ian Griffiths)说:
ShowDialog will always return true or
false. … Only after a dialog has
been shown but before it’s been closed
is DialogResult null.