/// <summary> /// Called when the user clicks the 'Next' button, goes to the next page /// </summary> private void buttonNext_Click(object sender, System.EventArgs e) { if (!currentPage.Validate()) { return; } if (isOnLastPage) { // Show the WW Tour to the user if (((FinalPage)this.wizardPages[wizardPages.Count - 1]).checkBoxIntro.Checked == true) { string TourPath = Path.Combine(Wizard.Settings.WorldWindDirectory, @"Data\Documentation\WW_Tour.exe"); if (File.Exists(TourPath)) { System.Diagnostics.Process.Start(TourPath); } else { System.Diagnostics.Process.Start("http://www.earthissquare.com/WorldWind/index.php?title=World_Wind_Tours"); } } Close(); return; } GotoPage(currentPageIndex + 1); }
/// <summary> /// Called when the user clicks the 'Next' button, goes to the next page /// </summary> private void buttonNext_Click(object sender, System.EventArgs e) { if (!currentPage.Validate()) { return; } if (isOnLastPage) { Close(); return; } GotoPage(currentPageIndex + 1); }