wxWizardPageEx* CAccountManagerProcessingPage::GetNext() const { if (CHECK_CLOSINGINPROGRESS()) { // Cancel Event Detected return PAGE_TRANSITION_NEXT(ID_COMPLETIONERRORPAGE); } else if (GetProjectAttachSucceeded()) { // We were successful in creating or retrieving an account return PAGE_TRANSITION_NEXT(ID_COMPLETIONPAGE); } else if (!GetProjectCommunicationsSucceeded() && GetProjectAccountNotFound()) { // The requested account does not exist or the password is bad return PAGE_TRANSITION_NEXT(ID_ERRNOTFOUNDPAGE); } else { // The project much be down for maintenance return PAGE_TRANSITION_NEXT(ID_COMPLETIONERRORPAGE); } return NULL; }
wxWizardPageEx* CProjectProcessingPage::GetNext() const { if (CHECK_CLOSINGINPROGRESS()) { // Cancel Event Detected return PAGE_TRANSITION_NEXT(ID_COMPLETIONERRORPAGE); } else if (GetProjectAttachSucceeded()) { // We were successful in creating or retrieving an account return PAGE_TRANSITION_NEXT(ID_COMPLETIONPAGE); } else if (!GetProjectCommunitcationsSucceeded() && GetProjectAccountAlreadyExists()) { // The requested account already exists return PAGE_TRANSITION_NEXT(ID_ERRALREADYEXISTSPAGE); } else if (!GetProjectCommunitcationsSucceeded() && GetProjectAccountNotFound()) { // The requested account does not exist or the password is bad return PAGE_TRANSITION_NEXT(ID_ERRNOTFOUNDPAGE); } else { // An error must have occurred return PAGE_TRANSITION_NEXT(ID_COMPLETIONERRORPAGE); } return NULL; }