private void SetupButtons(WizardNavigationArgs args) { FinishShown = args.ShowFinish; PreviousShown = args.ShowPrevious; btnNext.Text = FinishShown ? "Finish" : "Next >"; btnPrev.Visible = PreviousShown; }
private void btnNext_Click(object sender, EventArgs e) { WizardNavigationArgs args = new WizardNavigationArgs(); OnNextClicked(args); SetupButtons(args); }
void OnNextClicked(WizardNavigationArgs args) { NextClicked?.Invoke(args); }
void OnPreviousClicked(WizardNavigationArgs args) { PreviousClicked?.Invoke(args); }
public void Setup(WizardNavigationArgs args) { SetupButtons(args); }