コード例 #1
0
 /// <summary>
 /// Sets the current page of the Wizard to page.
 /// </summary>
 /// <param name="page">The page object to set the Wizard to</param>
 private void SetCurrentPage(ImportDeckWizardPageVM page)
 {
     Logger.Info("Setting the current page to " + page.Title);
     this.CurrentWizardPageVM        = page;
     this.NextStepCommandDisplayName = this.CurrentWizardPageVM is WizardPage_CompareCards ?
                                       "Load Deck in OCTGN" :
                                       "Next >";
 }
コード例 #2
0
        /// <summary>
        /// Instructs the Wizard to move to the next step.  This method will determine what the next step is
        /// based on the current step and the input parameters.
        /// </summary>
        public void MoveToNextStep()
        {
            Logger.Info("Moving to the next wizard page");
            if (this.IsCurrentWizardPageTheLastStep())
            {
                Logger.Info("Current page is the last page, so close the wizard");
                this.CloseWizard(true);
            }
            else
            {
                Logger.Info("Determining the next wizard page...");
                ImportDeckWizardPageVM nextPage = this.DetermineNextPage();
                Logger.Info("The next page is " + nextPage.Title);

                if (nextPage is WizardPage_CompareCards)
                {
                    this.HandleConversionAndShowCompareCardsPage();
                }
                else
                {
                    this.SetCurrentPage(nextPage);
                }
            }
        }
コード例 #3
0
 /// <summary>
 /// Sets the current page of the Wizard to page.
 /// </summary>
 /// <param name="page">The page object to set the Wizard to</param>
 private void SetCurrentPage(ImportDeckWizardPageVM page)
 {
     this.CurrentWizardPageVM = page;
     this.NextStepCommandDisplayName = this.CurrentWizardPageVM is WizardPage_CompareCards ? 
         "Load Deck in OCTGN" : 
         "Next >";
 }