private void buttonPrevious_Click(object sender, EventArgs e) { WizardEventArgs w = new WizardEventArgs("previous", CurrentPage, CurrentPage - 1); WizardHostActionEvent?.Invoke(this, w); if (w.Cancel == false) { CurrentPage--; } }
private void buttonNext_Click(object sender, EventArgs e) { WizardEventArgs w = new WizardEventArgs("next", CurrentPage, CurrentPage + 1); WizardHostActionEvent?.Invoke(this, w); if (w.Cancel == false) { CurrentPage++; } }