Example #1
0
        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;
            }
        }
Example #2
0
        private bool CanFinish()
        {
            IWizardViewTransition view = GetCurrentTransition();

            return((view == null) ? true : view.DoFinish());
        }
Example #3
0
        private bool CanMoveNext()
        {
            IWizardViewTransition view = GetCurrentTransition();

            return((view == null) ? true : view.DoNext());
        }