public EnableMainWindows ( bool fEnable ) : void | ||
fEnable | bool | Enable (true) or disable (false). |
return | void |
public void EnableMainWindows(bool fEnable)
{
CheckDisposed();
if (!fEnable)
m_nEnableLevel--;
else if (++m_nEnableLevel != 0)
return;
// TE-1913: Prevent user from accessing windows that are open to the same project.
// Originally this was used for importing.
foreach (IFwMainWnd fwMainWnd in MainWindows)
{
if (fwMainWnd is Form)
((Form)fwMainWnd).Enabled = fEnable;
}
}