Ejemplo n.º 1
0
        public SaveTabViewModel(TokenButtonFunctionProvider buttonFunctionProvider, ISelectedProfileProvider selectedProfileProvider, ITranslationUpdater translationUpdater, EditionHintOptionProvider editionHintOptionProvider, TokenHelper tokenHelper)
            : base(translationUpdater, selectedProfileProvider)
        {
            AllowSkipPrintDialog    = !editionHintOptionProvider.ShowOnlyForPlusAndBusinessHint;
            _buttonFunctionProvider = buttonFunctionProvider;
            _tokenHelper            = tokenHelper;

            translationUpdater.RegisterAndSetTranslation(tf => SetTokenViewModels());
            selectedProfileProvider.SelectedProfileChanged += (sender, args) => SetTokenViewModels();
        }
Ejemplo n.º 2
0
        public SaveTabViewModel(TokenButtonFunctionProvider buttonFunctionProvider, ISelectedProfileProvider selectedProfileProvider,
                                ITranslationUpdater translationUpdater, EditionHintOptionProvider editionHintOptionProvider, TokenHelper tokenHelper,
                                ITokenViewModelFactory tokenViewModelFactory, IDispatcher dispatcher)
            : base(translationUpdater, selectedProfileProvider, dispatcher)
        {
            AllowSkipPrintDialog    = !editionHintOptionProvider.ShowOnlyForPlusAndBusinessHint;
            _buttonFunctionProvider = buttonFunctionProvider;
            _tokenHelper            = tokenHelper;
            _tokenViewModelFactory  = tokenViewModelFactory;

            translationUpdater.RegisterAndSetTranslation(tf => SetTokenViewModels());
        }