/// <summary> /// Fires the CloseFromNextEvent /// </summary> /// <param name="wiz">Sender</param> public int OnCloseFromNext(Wizard wiz) { //Event args thinks that the next page will be the one before this one PageEventArgs e = new PageEventArgs(wiz.PageIndex + 1, wiz.Pages); //Tell anybody who listens if (CloseFromNext != null) { CloseFromNext(wiz, e); } //And then tell whomever called me what the prefered page is return(e.PageIndex); }
/// <summary> /// Fires the Validate Event before the page is displayed /// </summary> /// <param name="wiz">Wizard to pass into the sender argument</param> /// <returns>Index of Page that the event handlers would like to see next</returns> public int OnValidateBeforeShow(Wizard wiz, int pageIndex) { //Event args thinks that the next page will be the one before this one PageEventArgs e = new PageEventArgs(pageIndex, wiz.Pages); //Tell anybody who listens if (ValidateBeforeShow != null) { ValidateBeforeShow(wiz, e); } //And then tell whomever called me what the prefered page is return(e.PageIndex); }