private void buttonNext_Click(object sender, EventArgs e) { if (currentPage.ValidatePage()) { if (currentPage.NextPage != null) { ShowWizardPage(currentPage.NextPage); } else { // must be the last page this.Close(); } } }