public override void OnGoingToNextPage(WizardPageControl nextPage) { NewCxxTestSuiteWizardPage2 page2 = (NewCxxTestSuiteWizardPage2)nextPage; page2.PopulateWithHeader(headerUnderTest); }
//~ Methods .......................................................... // ------------------------------------------------------ /// <summary> /// Adds a wizard page to the wizard. /// </summary> /// <param name="page"> /// The page to be added to the wizard. /// </param> public void AddPage(WizardPageControl page) { Size size = pageContainer.Size; Size pageSize = page.Size; pages.Add(page); page.Wizard = this; if (pageSize.Width > size.Width) size.Width = pageSize.Width; if (pageSize.Height > size.Height) size.Height = pageSize.Height; this.Size = new Size(size.Width + 406 - 384, size.Height + 334 - 168); }