Exemple #1
0
    protected void btnStep_Click(object sender, EventArgs e)
    {
        stepAccountSecurity.Visible       = false;
        stepPersonalInformation.Visible   = false;
        stepAdditionalInformation.Visible = false;
        stepCompleted.Visible             = false;

        LinkButton            btn = (LinkButton)sender;
        NewAccountWizardSteps currentClickedStep = (NewAccountWizardSteps)Enum.Parse(typeof(NewAccountWizardSteps), btn.CommandArgument);

        switch (currentClickedStep)
        {
        case NewAccountWizardSteps.AccountSecurity:
            stepAccountSecurity.Visible        = true;
            stepAccountSecurity.SetupASPNETID  = SetupASPNETID;
            stepAccountSecurity.SetupAccountId = SetupAccountId;
            stepAccountSecurity.LoadDetails();
            break;

        case NewAccountWizardSteps.PersonalInformation:
            stepPersonalInformation.Visible        = true;
            stepPersonalInformation.SetupASPNETID  = SetupASPNETID;
            stepPersonalInformation.SetupAccountId = SetupAccountId;
            stepPersonalInformation.SetupCountryId = SetupCountryId;
            stepPersonalInformation.LoadDetails();
            break;

        case NewAccountWizardSteps.AdditionalInformation:
            stepAdditionalInformation.Visible        = true;
            stepAdditionalInformation.SetupASPNETID  = SetupASPNETID;
            stepAdditionalInformation.SetupAccountId = SetupAccountId;
            stepAdditionalInformation.SetupCountryId = SetupCountryId;
            stepAdditionalInformation.LoadDetails();
            break;

        default:
            break;
        }
        UpdatePanelNewAccount.Update();
    }
 public NewAccountStepCompletedEventArgs(NewAccountWizardSteps completedStep)
 {
     currentStepCompleted = completedStep;
 }