private void OnCanNext(object sender, StiCanNextEventArgs e) { if (CanNext != null) { CanNext(sender, e); } }
public void UpdateWizardState() { if (SelectedIndex == 0) { BackButton.Enabled = false; } else { BackButton.Enabled = true; } if (SelectedIndex == this.Pages.Count - 1) { NextButton.Enabled = false; FinishButton.Enabled = true; FinishButton.Focus(); } else { StiCanNextEventArgs e = new StiCanNextEventArgs(); InvokeOnCanNext(e); NextButton.Enabled = e.CanNext; StiCanFinishEventArgs ee = new StiCanFinishEventArgs(); InvokeOnCanFinish(ee); FinishButton.Enabled = ee.CanFinish; } }
protected void OnCanNext(StiCanNextEventArgs e) { OnCanNext(this, e); }
public void InvokeOnCanNext(StiCanNextEventArgs e) { OnCanNext(e); }