Exactly! I call a wpf window with an OK and Cancel button, from a class. When the user clicks on the Cancel button, the code should exit. Instead, it continues to execute. To avoid this, I call this MyException class, so that it simple exits. Is there any other way to quit the application if the user clicks on the Cancel button?
Thanks