void CProjectProcessingPage::OnPageChanged( wxWizardExEvent& event ) { if (event.GetDirection() == false) return; wxASSERT(m_pTitleStaticCtrl); wxASSERT(m_pProgressIndicator); m_pTitleStaticCtrl->SetLabel( _("Communicating with project\nPlease wait...") ); SetProjectCommunitcationsSucceeded(false); SetProjectUnavailable(false); SetProjectAccountAlreadyExists(false); SetNextState(ATTACHPROJECT_INIT); CProjectProcessingPageEvent TransitionEvent(wxEVT_PROJECTPROCESSING_STATECHANGE, this); AddPendingEvent(TransitionEvent); Fit(); }
void CAccountManagerProcessingPage::OnPageChanged( wxWizardExEvent& event ) { if (event.GetDirection() == false) return; CWizardAttach* pWA = ((CWizardAttach*)GetParent()); wxASSERT(m_pTitleStaticCtrl); wxASSERT(m_pPleaseWaitStaticCtrl); wxASSERT(m_pProgressIndicator); wxASSERT(pWA); if (!pWA->m_strProjectName.IsEmpty()) { wxString str; // %s is the project name // i.e. 'BOINC', 'GridRepublic' str.Printf(_("Communicating with %s."), pWA->m_strProjectName.c_str()); m_pTitleStaticCtrl->SetLabel( str ); } else { m_pTitleStaticCtrl->SetLabel( _("Communicating with server.") ); } m_pPleaseWaitStaticCtrl->SetLabel( _("Please wait...") ); SetProjectCommunicationsSucceeded(false); SetProjectUnavailable(false); SetProjectAccountAlreadyExists(false); SetNextState(ATTACHACCTMGR_INIT); CAccountManagerProcessingPageEvent TransitionEvent(wxEVT_ACCOUNTMANAGERPROCESSING_STATECHANGE, this); AddPendingEvent(TransitionEvent); Fit(); }