using System; using System.Windows.Forms; namespace Gui.Wizard { /// /// Delegate definition for handling NextPageEvents /// public delegate void PageEventHandler(object sender, PageEventArgs e); /// /// Arguments passed to an application when Page is closed in a wizard. The Next page to be displayed /// can be changed, by the application, by setting the NextPage to a wizardPage which is part of the /// wizard that generated this event. /// public class PageEventArgs : EventArgs { private int vPage; private PageCollection vPages; /// /// Constructs a new event /// /// The index of the next page in the collection /// Pages in the wizard that are acceptable to be public PageEventArgs(int index, PageCollection pages) : base() { vPage = index; vPages = pages; } /// /// Gets/Sets the wizard page that will be displayed next. If you set this it must be to a wizardPage from the wizard. /// public WizardPage Page { get { //Is this a valid page if (vPage >=0 && vPage /// Gets the index of the page /// public int PageIndex { get { return vPage; } } } }