First, I open a mxd document named A in arcmap, then i use my add-in to generate another mxd document named B,
then I use
to open the document, but the document does not display normally, it has both A and B's layers. I want to only open B, so before open B, I have to close A.
How can I achieve this through an arcmap add-in in c#?