I don't care for Cairngorm too much. I found you hit the same code multiple times (5 in this case) opening a form. System runs like a dog.
But here are some links:
...and a bounce in your post <g>
1 person found this helpful
I assume you are using cairngorm 2. The first thing that comes to my mind is to have a Boolean in the model. You watch that boolean in the main app. When you trigger authentication inside command you make it true. When done with authentication you make it false. The watcher from main app will pickup the false part and call Pop-upManager remove. You need also to cache a reference to you pop-up window.
Other way is to attach an IResponder like reference (or just a simple function) to the event when showing the pop-up. Your IResponder will in fact be a ref your main app. When you need to close just call the function in there and inside the function remove the pop-up.
This is not the cleanest way to go but it will get you there.