private void SetButtonVisiblity() { _buttons.BackEnabled = !(_history.Count == 0); string last = (((WizardNavigator)_controller.Navigator).LastViewName); _buttons.NextEnabled = !(last == GetActiveView().ViewName); IWizardViewTransition view = GetActiveWizardViewTransition(); if (view != null) { _buttons.FinishEnabled = view.SupportsFinish; _buttons.CancelEnabled = view.SupportsCancel; } else { _buttons.FinishEnabled = false; _buttons.CancelEnabled = false; } }
private bool CanFinish() { IWizardViewTransition view = GetCurrentTransition(); return((view == null) ? true : view.DoFinish()); }
private bool CanMoveNext() { IWizardViewTransition view = GetCurrentTransition(); return((view == null) ? true : view.DoNext()); }