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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 4
0
 public MacroRunner(IXApplication app, IMacroRunnerExService runner)
 {
     m_App    = app;
     m_Runner = runner;
 }