public PrimaryStatsTableViewModel(ILogger logger, IPrimaryStatsTableModel model, IPrimaryStatTableViewModelBindingHelper bindingHelper, IAsyncCommandFactory asyncCommandFactory,
                                          IAsyncCommandAdaptorFactory asyncCommandAdaptorFactory, IUiThreadInvoker uiThreadInvoker, IUiStateController uiStateController) : base(uiThreadInvoker)
        {
            _logger                     = logger;
            _model                      = model;
            _bindingHelper              = bindingHelper;
            _uiThreadInvoker            = uiThreadInvoker;
            _uiStateController          = uiStateController;
            _model.PrimaryStatsUpdated += ModelOnPrimaryStatsUpdated;

            SetupTaskRunners(asyncCommandFactory);

            Delete = asyncCommandAdaptorFactory.CreateWithContext(() => { _logger.LogEntry(); });
        }
Ejemplo n.º 2
0
 private void SetupCommandBindings(IAsyncCommandAdaptorFactory asyncCommandAdaptorFactory)
 {
     AddSkill = asyncCommandAdaptorFactory.CreateWithContext((Action)AddSkillCommand);
 }