void CMainWindow::ShowUp(bool bVisible) { if (bVisible) { CAccount* pAccount = CYukiNailShopManager::GetInstance()->GetCurrentOperatorAccount(); BEATS_ASSERT(pAccount != NULL); if (pAccount) { m_pBalanceBtn->Show(pAccount->CheckPrivilege(CAccount::eAPT_Balance)); bool bCanOperatorMember = pAccount->CheckPrivilege(CAccount::eAPT_MemberQuery) || pAccount->CheckPrivilege(CAccount::eAPT_MemberRegister) || pAccount->CheckPrivilege(CAccount::eAPT_MemberManage); m_pMemeberBtn->Show(bCanOperatorMember); m_pSummaryBtn->Show(pAccount->CheckPrivilege(CAccount::eAPT_Summary)); m_pAccountBtn->Show(pAccount->CheckPrivilege(CAccount::eAPT_OperateAccount)); this->Show(true); } } else { this->Show(false); } }