Exemplo n.º 1
0
        public MainViewModel(IWizardService wizardService)
        {
            Argument.IsNotNull(() => wizardService);

            _wizardService = wizardService;

            ShowWizard = new TaskCommand(OnShowWizardExecuteAsync);

            Title = "Orc.Wizard example";
        }
Exemplo n.º 2
0
        public MainViewModel(IWizardService wizardService)
        {
            Argument.IsNotNull(() => wizardService);

            _wizardService = wizardService;

            ShowWizard = new TaskCommand(OnShowWizardExecuteAsync);

            Title = "Orc.Wizard example";
        }
Exemplo n.º 3
0
        public WizardViewModel(IWizardService wizardService, IUIVisualizerService uiVisualizerService)
        {
            Argument.IsNotNull(() => wizardService);
            Argument.IsNotNull(() => uiVisualizerService);

            _wizardService       = wizardService;
            _uiVisualizerService = uiVisualizerService;

            ShowWizard         = new TaskCommand(OnShowWizardExecuteAsync);
            ShowSeparateWindow = new TaskCommand(OnShowSeparateWindow);
        }
Exemplo n.º 4
0
        public MainViewModel(IWizardService wizardService, ITypeFactory typeFactory)
        {
            Argument.IsNotNull(() => wizardService);
            Argument.IsNotNull(() => typeFactory);

            _wizardService = wizardService;
            _typeFactory   = typeFactory;

            ShowWizard = new TaskCommand(OnShowWizardExecuteAsync);

            Title = "Orc.Wizard example";
        }
Exemplo n.º 5
0
        public MainViewModel(IWizardService wizardService, ITypeFactory typeFactory)
        {
            Argument.IsNotNull(() => wizardService);
            Argument.IsNotNull(() => typeFactory);

            _wizardService = wizardService;
            _typeFactory = typeFactory;

            ShowWizard = new TaskCommand(OnShowWizardExecuteAsync);

            Title = "Orc.Wizard example";
        }
Exemplo n.º 6
0
        public MainViewModel(IWizardService wizardService, ITypeFactory typeFactory)
        {
            Argument.IsNotNull(() => wizardService);
            Argument.IsNotNull(() => typeFactory);

            _wizardService = wizardService;
            _typeFactory   = typeFactory;

            ShowWizard = new TaskCommand(OnShowWizardExecuteAsync);
            UseFastForwardNavigationController = true;
            ShowSummaryPage        = true;
            ShowHelp               = true;
            HandleNavigationStates = true;

            Title = "Orc.Wizard example";
        }
Exemplo n.º 7
0
        public static Task <bool?> ShowWizardAsync <TWizard>(this IWizardService wizardService, object model = null)
            where TWizard : IWizard
        {
            Argument.IsNotNull(() => wizardService);

            var typeFactory = wizardService.GetTypeFactory();

            IWizard wizard = null;

            if (model is not null)
            {
                Log.Debug("Creating wizard '{0}' with model '{1}'", typeof(TWizard).GetSafeFullName(false), ObjectToStringHelper.ToFullTypeString(model));

                wizard = typeFactory.CreateInstanceWithParametersAndAutoCompletion <TWizard>(model);
            }
            else
            {
                Log.Debug("Creating wizard '{0}'", typeof(TWizard).GetSafeFullName(false));

                wizard = typeFactory.CreateInstance <TWizard>();
            }

            return(wizardService.ShowWizardAsync(wizard));
        }
Exemplo n.º 8
0
 public AccountController(IWizardService wizardService)
 {
     this._wizardService = wizardService;
 }
Exemplo n.º 9
0
 public WizardController(IWizardService service, ILogger <WizardController> logger)
 {
     _service = service;
     _logger  = logger;
 }
Exemplo n.º 10
0
 public WizardController(IWizardService wizardService, CityService cityService, IDivisionService divisionService)
 {
     this._wizardService   = wizardService;
     this._cityService     = cityService;
     this._divisionService = divisionService;
 }
Exemplo n.º 11
0
 public AccountController(IOptionsSnapshot <JwtIssuerOptions> jwtOptions, IActivityService activityService, IWizardService wizardService)
 {
     this._activityService = activityService;
     this._wizardService   = wizardService;
     this._jwtOptions      = jwtOptions.Value;
 }
Exemplo n.º 12
0
 public ActivityController(IActivityService activityService, IDivisionService divisionService, IWizardService wizardService)
 {
     this._activityService = activityService;
     this._divisionService = divisionService;
     this._wizardService   = wizardService;
 }
Exemplo n.º 13
0
 public AuthController(IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions, IWizardService wizardService)
 {
     this._jwtOptions    = jwtOptions.Value;
     this._jwtFactory    = jwtFactory;
     this._wizardService = wizardService;
 }