You're using "ShowDialog" with no options. That produces a modal dialog box. That means you need a way to dismiss the dialog box. Without the "Cancel" (which is the name of the button you used to close the dialog box) you have no way to know why the dialog box was closed and what action to take (if there were multiple choices offered to the user).
I think you probably wanted to use the "Show" method and not "ShowDialog".