public MainWindowStart(IThreadManager threadManager, IMaybePipedApplicationStarter maybePipedApplicationStarter, IPdfArchitectCheck pdfArchitectCheck, IMainWindowThreadLauncher mainWindowThreadLauncher)
     : base(maybePipedApplicationStarter)
 {
     _threadManager            = threadManager;
     _pdfArchitectCheck        = pdfArchitectCheck;
     _mainWindowThreadLauncher = mainWindowThreadLauncher;
 }
 public QuickActionPrintWithPdfArchitectCommand(ITranslationUpdater translationUpdater, IPdfArchitectCheck architectCheck, IRecommendArchitectAssistant recommendArchitectAssistant, IRecommendArchitectUpgrade recommendArchitectUpgrade, IProcessStarter processStarter) : base(translationUpdater)
 {
     _architectCheck = architectCheck;
     _recommendArchitectAssistant = recommendArchitectAssistant;
     _recommendArchitectUpgrade   = recommendArchitectUpgrade;
     _processStarter = processStarter;
 }
 public ArchitectViewModel(IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater, IFile file) : base(translationUpdater)
 {
     _pdfArchitectCheck = pdfArchitectCheck;
     _processStarter    = processStarter;
     _webLinkLauncher   = webLinkLauncher;
     _file = file;
 }
Exemple #4
0
 public void Setup()
 {
     _processStarter    = Substitute.For <IProcessStarter>();
     _pdfArchitectCheck = Substitute.For <IPdfArchitectCheck>();
     _file = Substitute.For <IFile>();
     _translationUpdater = new TranslationUpdater(new TranslationFactory(), new ThreadManager());
 }
 // ReSharper disable once MemberCanBeProtected.Global
 public RecommendPdfArchitectWindowViewModel(ISoundPlayer soundPlayer, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater, IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, IFile file)
     : base(translationUpdater)
 {
     _soundPlayer       = soundPlayer;
     _webLinkLauncher   = webLinkLauncher;
     _pdfArchitectCheck = pdfArchitectCheck;
     _processStarter    = processStarter;
     _file           = file;
     InfoCommand     = new DelegateCommand(ExecuteInfo);
     DownloadCommand = new DelegateCommand(ExecuteDownload);
 }
        public OpenViewerActionViewModel(ITranslator translator, IInteractionInvoker interactionInvoker, IPdfArchitectCheck pdfArchitectCheck,
                                         ISettingsProvider settingsProvider, IProcessStarter processStarter)
        {
            Translator          = translator;
            _interactionInvoker = interactionInvoker;
            _pdfArchitectCheck  = pdfArchitectCheck;
            _settingsProvider   = settingsProvider;
            _processStarter     = processStarter;

            DisplayName = Translator.GetTranslation("OpenViewerSettings", "DisplayName");
            Description = Translator.GetTranslation("OpenViewerSettings", "Description");
        }
        public OpenViewerActionViewModel(OpenViewerSettingsAndActionTranslation translation, IInteractionInvoker interactionInvoker, IPdfArchitectCheck pdfArchitectCheck,
                                         ISettingsProvider settingsProvider, IProcessStarter processStarter)
        {
            Translation         = translation;
            _interactionInvoker = interactionInvoker;
            _pdfArchitectCheck  = pdfArchitectCheck;
            _settingsProvider   = settingsProvider;
            _processStarter     = processStarter;

            DisplayName = Translation.DisplayName;
            Description = Translation.Description;
        }
 /// <summary>
 ///     Creates a new default viewer action.
 /// </summary>
 public DefaultViewerAction(IFileAssoc fileAssoc, IRecommendArchitect recommendArchitect,
                            IPdfArchitectCheck pdfArchitectCheck, ISettingsProvider settingsProvider,
                            OutputFormatHelper outputFormatHelper, IProcessStarter processStarter,
                            IDefaultViewerCheck defaultViewerCheck)
 {
     _fileAssoc          = fileAssoc;
     _recommendArchitect = recommendArchitect;
     _pdfArchitectCheck  = pdfArchitectCheck;
     _settingsProvider   = settingsProvider;
     _outputFormatHelper = outputFormatHelper;
     _processStarter     = processStarter;
     _defaultViewerCheck = defaultViewerCheck;
 }
        public void SetUp()
        {
            _settings           = new PdfCreatorSettings();
            _fileAssoc          = Substitute.For <IFileAssoc>();
            _recommendArchitect = Substitute.For <IRecommendArchitect>();
            _pdfArchitectCheck  = Substitute.For <IPdfArchitectCheck>();
            _pdfArchitectCheck.GetInstallationPath().Returns(ArchitectPath);
            _settingsProvider = Substitute.For <ISettingsProvider>();
            _settingsProvider.Settings.Returns(_settings);
            _outputFormatHelper         = new OutputFormatHelper();
            _processStarter             = Substitute.For <IProcessStarter>();
            _defaultViewerCheck         = Substitute.For <IDefaultViewerCheck>();
            _defaultViewer              = new DefaultViewer();
            _defaultViewer.OutputFormat = OutputFormat.Pdf;
            _defaultViewer.Path         = DefaultViewerPath;
            _settings.DefaultViewers.Add(_defaultViewer);
            _job = new Job(new JobInfo(), new ConversionProfile(), new Accounts());

            _profile = new ConversionProfile();

            _defaultViewerAction = new DefaultViewerAction(_fileAssoc, _recommendArchitect, _pdfArchitectCheck, _settingsProvider, _outputFormatHelper, _processStarter, _defaultViewerCheck);
        }
 public QuickActionOpenWithPdfArchitectCommand(ITranslationUpdater translationUpdater, IDefaultViewerAction action, IPdfArchitectCheck architectCheck, IRecommendArchitect recommendArchitect) : base(translationUpdater)
 {
     _action             = action;
     _architectCheck     = architectCheck;
     _recommendArchitect = recommendArchitect;
 }
 public void Setup()
 {
     _processStarter    = Substitute.For <IProcessStarter>();
     _pdfArchitectCheck = Substitute.For <IPdfArchitectCheck>();
 }
 /// <summary>
 ///     Creates a new default viewer action.
 /// </summary>
 public DefaultViewerAction(IFileAssoc fileAssoc, IRecommendArchitect recommendArchitect, IPdfArchitectCheck architectCheck)
 {
     _fileAssoc          = fileAssoc;
     _recommendArchitect = recommendArchitect;
     _architectCheck     = architectCheck;
 }
Exemple #13
0
 public PdfArchitectTabViewModel(IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, PdfArchitectTabTranslation translation)
 {
     _processStarter    = processStarter;
     Translation        = translation;
     _pdfArchitectCheck = pdfArchitectCheck;
 }
Exemple #14
0
 public PdfArchitectTabViewModel(ITranslator translator, IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter)
 {
     _processStarter    = processStarter;
     Translator         = translator;
     _pdfArchitectCheck = pdfArchitectCheck;
 }
 public ArchitectViewModel(IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, ITranslationUpdater translationUpdater) : base(translationUpdater)
 {
     _pdfArchitectCheck = pdfArchitectCheck;
     _processStarter    = processStarter;
 }