telstrapurple / PurpleExplorer

cross-platform Azure Service Bus explorer (Windows, MacOS, Linux)
MIT License
163 stars 33 forks source link

If a dialog is close by clicking x, nothing will happen #4

Closed salmanalibanani closed 4 years ago

salmanalibanani commented 4 years ago

I have created a base class for Dialog view models. It has a property "Cancel" which is used to detect whether the dialog was closed by submitting, or by closing the window "x" button. If user closes the window without submitting, nothing should happen.

All future dialogs should use this as the base class of the ViewModel class.