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; }
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; }