public void Dispose()
{
if (m_app == null)
return;
try
{
foreach (IFwMainWnd mainWnd in m_app.MainWindows)
{
if (mainWnd is FwMainWnd)
((FwMainWnd)mainWnd).Mediator.ProcessMessages = m_oldPrsMsgsVals[mainWnd];
}
}
catch
{
// This is only used when bringing up the error dialog. We don't want to bother
// with this exception since we have no idea what state the application is in.
}
}