Esempio n. 1
0
 public PurchaseBillingOfferWizard(EBillingOfferType offerTypes)
 {
     this.State.ContactInfoStep.LightWeightOnly   = true;
     this.State.SelectBillingOfferStep.ShowOffers = offerTypes;
     this.State.ConfirmationStep.OfferType        = offerTypes;
     this._finishStep = new PurchaseBillingOfferFinishStep(this, this.State);
     this._errorStep  = new AccountManagementErrorPage(this, Shell.LoadString(StringId.IDS_ACCOUNT_PURCHASE_ERROR_TITLE), Shell.LoadString(StringId.IDS_ACCOUNT_PURCHASE_ERROR_DESC));
     this.AddPage(State.SelectBillingOfferStep);
     this.AddPage(State.ContactInfoStep);
     this.AddPage(State.SelectPaymentInstrumentStep);
     this.AddPage(State.PaymentInstrumentStep);
     this.AddPage(State.ConfirmationStep);
     this.AddPage(_finishStep);
     this.AddPage(_errorStep);
 }
        public SelectCreditCardWizard()
        {
            this.State.ContactInfoStep.LightWeightOnly = true;
            this._finishStep = new SelectCreditCardFinishStep(this, this.State, Shell.LoadString(StringId.IDS_ACCOUNT_FINISHED_DESCRIPTION));
            this._errorStep  = new AccountManagementErrorPage(this, Shell.LoadString(StringId.IDS_ACCOUNT_ADD_CC_TO_ACCOUNT_ERROR_TITLE), Shell.LoadString(StringId.IDS_ACCOUNT_ADD_CC_TO_ACCOUNT_ERROR_DESC));
            this._finishStep.FinishTextOverride = Shell.LoadString(StringId.IDS_PURCHASE_BUTTON);
            PaymentInstrumentStep paymentInstrumentStep = this.State.PaymentInstrumentStep;

            paymentInstrumentStep.NextTextOverride = Shell.LoadString(StringId.IDS_OK_BUTTON);
            this.AddPage(State.ContactInfoStep);
            this.AddPage(State.SelectPaymentInstrumentStep);
            this.AddPage(paymentInstrumentStep);
            this.AddPage(_finishStep);
            this.AddPage(_errorStep);
        }