public ProfessionalHintStepViewModel(ITranslationUpdater translationUpdater, ICommandLocator commandLocator, IProfessionalHintHelper professionalHintHelper) : base(translationUpdater)
        {
            _professionalHintHelper = professionalHintHelper;
            FinishStepCommand       = new DelegateCommand(o => CancelExecute());

            ProfessionalHintCommand = new CompositeCommand(); //compose "open plus hint url" and "call step finsihed"
            var urlOpenCommand = commandLocator.GetInitializedCommand <UrlOpenCommand, string>(Urls.ProfessionalHintUrl);

            if (urlOpenCommand != null) //required to avoid NullException in DesignTimeViewModel
            {
                ProfessionalHintCommand.RegisterCommand(urlOpenCommand);
            }

            ProfessionalHintCommand.RegisterCommand(new DelegateCommand(o => InvokeStepFinished()));
        }
Exemplo n.º 2
0
 public InteractiveWorkflowManagerFactoryWithProfessionalHintHintStep(IWorkflowNavigationHelper workflowNavigationHelper, IProfessionalHintHelper professionalHintHelper, ISignaturePasswordCheck signaturePasswordCheck, IUpdateHelper updateHelper)
     : base(workflowNavigationHelper, signaturePasswordCheck, updateHelper)
 {
     _workflowNavigationHelper = workflowNavigationHelper;
     _professionalHintHelper   = professionalHintHelper;
 }
Exemplo n.º 3
0
 public ProfessionalHintStep(IProfessionalHintHelper professionalHintHelper)
 {
     _professionalHintHelper = professionalHintHelper;
 }