예제 #1
0
BOOL  CdIpmDoc::IsEnabledItemReplicationServerChangeNode()
{
	try
	{
		CTreeItem* pSelected = GetSelectedTreeItem();
		BOOL bEnable = pSelected? pSelected->IsEnabled(IDM_IPMBAR_REPLICSVR_CHANGERUNNODE): FALSE;
		return bEnable; 
	}
	catch (CeIpmException e)
	{
		AfxMessageBox (e.GetReason(), MB_ICONEXCLAMATION|MB_OK);
	}
	catch (...)
	{
		TRACE0("Exception in: CdIpmDoc::IsEnabledItemReplicationServerChangeNode\n");
	}
	return FALSE;
}
예제 #2
0
BOOL CdIpmDoc::IsEnabledItemCloseServer()
{
	try
	{
		CTreeItem* pSelected = GetSelectedTreeItem();
		BOOL bEnable = pSelected? pSelected->IsEnabled(IDM_IPMBAR_CLOSESVR): FALSE;
		return bEnable; 
	}
	catch (CeIpmException e)
	{
		AfxMessageBox (e.GetReason(), MB_ICONEXCLAMATION|MB_OK);
	}
	catch (...)
	{
		TRACE0("Exception in: CdIpmDoc::IsEnabledItemCloseServer\n");
	}
	return FALSE;
}