You could use a variable to store the status in the main application.
When you are calling any dialog window, just increment it by one.
And in the dialog's closing event, decrement it by one.
That way, you can see the status of your dialogs by seeing the count of the variable.