I am working with C# and ArcObjects. I am having trouble determining if an .mxd file is loaded or currently open. I have been looking at the IMapDocument and IMxDocument objects, as well as the IMapDocument.IsMapDocument property but I am not following. I am not able to mimic its functionality.
All I am trying to accomplish is a function that returns a boolean value or even a message saying 'Yes' if there is a map document loaded/opened and 'No' if a map document is not loaded/opened.
Any help on this topic would be greatly appreciated. Thanks in advance.