GetWizardPage() public abstract method

public abstract GetWizardPage ( ) : AbstractWizardPage
return AbstractWizardPage
Ejemplo n.º 1
0
        private bool ValidateCurrentPage()
        {
            AbstractWizardPage page = pages.ElementAt(currentPage);


            try
            {
                AbstractConditionalWizardPage conditionalPage = (AbstractConditionalWizardPage)page;

                page = conditionalPage.GetWizardPage();
            }
            catch (Exception ex)
            {
            }

            return(page.ValidateBeforeNext());
        }
Ejemplo n.º 2
0
        private void ShowPageAtIndex(int pageIndex)
        {
            AbstractWizardPage page = pages.ElementAt(pageIndex);


            try
            {
                AbstractConditionalWizardPage conditionalPage = (AbstractConditionalWizardPage)page;
                conditionalPage.DataStore = dataStore;
                page = conditionalPage.GetWizardPage();
            } catch (Exception ex)  {
            }
            page.DataStore = dataStore;
            page.Populate();
            SetControlsForPage(page);
            ApplyControlOverrideRules();
            activeForm.LabelPageTitle.Text = page.PageTitle;
            activeForm.PageContainer.Controls.Clear();
            activeForm.PageContainer.Controls.Add(page);
        }