private void OnBeforeNextClick(object sender, StiBeforePageChangedEventArgs e) { if (BeforeNextClick != null) { BeforeNextClick(sender, e); } }
private void OnNextClick(object sender, EventArgs e) { if (SelectedIndex < this.Pages.Count - 1) { StiBeforePageChangedEventArgs ee = new StiBeforePageChangedEventArgs( this.Pages[this.SelectedIndex] as StiWizardPage, this.Pages[this.SelectedIndex + 1] as StiWizardPage); InvokeOnBeforeNextClick(ee); if (!ee.Cancel) { SelectedIndex++; UpdateWizardState(); if (NextClick != null) { NextClick(sender, e); } } } }
private void OnBackClick(object sender, EventArgs e) { if (SelectedIndex > 0) { StiBeforePageChangedEventArgs ee = new StiBeforePageChangedEventArgs( this.Pages[this.SelectedIndex] as StiWizardPage, this.Pages[this.SelectedIndex - 1] as StiWizardPage); InvokeOnBeforeBackClick(ee); if (!ee.Cancel) { SelectedIndex--; UpdateWizardState(); if (BackClick != null) { BackClick(sender, e); } } } }
protected void OnBeforeNextClick(StiBeforePageChangedEventArgs e) { OnBeforeNextClick(this, e); }
public void InvokeOnBeforeNextClick(StiBeforePageChangedEventArgs e) { OnBeforeNextClick(e); }