コード例 #1
0
        internal AssemblyBatchRunJobExecutor(IXApplication app, IMacroRunnerExService macroRunnerSvc,
                                             IXDocument[] documents, IEnumerable <MacroData> macros, bool activateDocs)
        {
            m_App = app;

            m_MacroRunner  = macroRunnerSvc;
            m_Docs         = documents;
            m_Macros       = macros;
            m_ActivateDocs = activateDocs;
        }
コード例 #2
0
        private void OnConnect()
        {
            m_MacroRunnerSvc = m_Host.Services.GetService <IMacroRunnerExService>();
            m_Msg            = m_Host.Services.GetService <IMessageService>();
            m_Logger         = m_Host.Services.GetService <IXLogger>();

            m_Host.RegisterCommands <Commands_e>(OnCommandClick);
            m_Page          = m_Host.CreatePage <AssemblyBatchData>();
            m_Data          = new AssemblyBatchData(m_Host.Services.GetService <IMacroFileFilterProvider>());
            m_Page.Closing += OnPageClosing;
            m_Page.Closed  += OnPageClosed;
        }
コード例 #3
0
        public BatchRunner(IApplicationProvider appProvider,
                           IMacroRunnerExService macroRunnerSvc,
                           TextWriter userLogger, IProgressHandler progressHandler, IJobManager jobMgr, IXLogger logger)
        {
            m_UserLogger      = userLogger;
            m_ProgressHandler = progressHandler;
            m_MacroRunnerSvc  = macroRunnerSvc;
            m_AppProvider     = appProvider;

            m_Logger = logger;

            m_JobMgr = jobMgr;
        }
コード例 #4
0
 public MacroRunner(IXApplication app, IMacroRunnerExService runner)
 {
     m_App    = app;
     m_Runner = runner;
 }