/// <summary>
        /// Loads a new wizard page.
        /// </summary>
        /// <param name="newPage"></param>
        private void LoadPage(WizardPageBase newPage)
        {
            // Clear the previous page
            if (currentPage != null)
            {
                currentPage.CompletePage();
                currentPage.PreviousPageChanged -= currentPage_PageChanged;
                currentPage.NextPageChanged     -= currentPage_PageChanged;
                currentPage.PageCompeleted      -= currentPage_Completed;
            }
            pageContainer.Controls.Clear();

            // Set the new page
            currentPage                  = newPage;
            currentPage.Controller       = controller;
            currentPage.MigrationOptions = controller.MigrationOptions;
            pageContainer.Controls.Add(currentPage);
            currentPage.Dock                 = DockStyle.Fill;
            currentPage.Visible              = true;
            currentPage.PreviousPageChanged += currentPage_PageChanged;
            currentPage.NextPageChanged     += currentPage_PageChanged;
            currentPage.PageCompeleted      += currentPage_Completed;
            ChangeNavigation();
            currentPage.RunPage();
        }
Example #2
0
        /// <summary>
        /// Loads a new wizard page.
        /// </summary>
        /// <param name="newPage"></param>
        private void LoadPage(WizardPageBase newPage)
        {
            // Clear the previous page
            if (currentPage != null)
            {
                currentPage.CompletePage();
                currentPage.PreviousPageChanged -= currentPage_PageChanged;
                currentPage.NextPageChanged -= currentPage_PageChanged;
                currentPage.PageCompeleted -= currentPage_Completed;
            }
            pageContainer.Controls.Clear();

            // Set the new page
            currentPage = newPage;
            currentPage.Controller = controller;
            currentPage.MigrationOptions = controller.MigrationOptions;
            pageContainer.Controls.Add(currentPage);
            currentPage.Dock = DockStyle.Fill;
            currentPage.Visible = true;
            currentPage.PreviousPageChanged += currentPage_PageChanged;
            currentPage.NextPageChanged += currentPage_PageChanged;
            currentPage.PageCompeleted += currentPage_Completed;
            ChangeNavigation();
            currentPage.RunPage();
        }
 /// <summary>
 /// Links to the next page.
 /// </summary>
 /// <param name="nextPage"></param>
 public void LinkNextPage(WizardPageBase nextPage)
 {
     NextPage = nextPage;
     nextPage.previousPage = this;
 }
 /// <summary>
 /// Links to the next page.
 /// </summary>
 /// <param name="nextPage"></param>
 public void LinkNextPage(WizardPageBase nextPage)
 {
     NextPage = nextPage;
     nextPage.previousPage = this;
 }