bool CWizardAttach::RunSimpleProjectAttach( wxString strName, wxString strURL, wxString strAuthenticator, wxString strInstitution, wxString strDescription, wxString strKnown ) { SetProjectName(strName); SetProjectURL(strURL); SetProjectInstitution(strInstitution); SetProjectDescription(strDescription); if (strAuthenticator.size()) { SetProjectAuthenticator(strAuthenticator); } SetProjectKnown(strKnown.length() > 0); IsAttachToProjectWizard = true; IsAccountManagerWizard = false; return RunWizard(m_ProjectWelcomePage); }
/*! * Runs the wizard. */ bool CWizardAttach::Run( wxString strProjectName, wxString strProjectURL, wxString strProjectAuthenticator, wxString strProjectInstitution, wxString strProjectDescription, wxString strProjectKnown, wxString strProjectSetupCookie, bool bAccountKeyDetected, bool bEmbedded ){ SetProjectName(strProjectName); if (strProjectURL.size()) { SetProjectURL(strProjectURL); SetCredentialsCached(bAccountKeyDetected); } SetProjectInstitution(strProjectInstitution); SetProjectDescription(strProjectDescription); if (strProjectAuthenticator.size()) { SetProjectAuthenticator(strProjectAuthenticator); } if (strProjectSetupCookie.size()) { SetProjectSetupCookie(strProjectSetupCookie); } SetProjectKnown(strProjectKnown.length() > 0); if (strProjectURL.size() && strProjectAuthenticator.size() && !bAccountKeyDetected) { SetCredentialsDetected(true); SetCloseWhenCompleted(true); } if (m_ProjectPropertiesPage && m_ProjectInfoPage && m_ProjectWelcomePage) { IsAttachToProjectWizard = true; IsAccountManagerWizard = false; if (strProjectName.size() && strProjectURL.size() && (strProjectSetupCookie.size() == 0)) { return RunWizard(m_ProjectWelcomePage); } else if (strProjectURL.size() && (IsCredentialsCached() || IsCredentialsDetected() || strProjectSetupCookie.size())) { return RunWizard(m_ProjectPropertiesPage); } else { return RunWizard(m_ProjectInfoPage); } } return FALSE; }