示例#1
0
        public JobResultJournalVM(IBatchRunJobExecutor executor)
        {
            m_Lock = new object();

            Output = new ObservableCollection <string>();
            BindingOperations.EnableCollectionSynchronization(Output, m_Lock);

            m_Executor = executor;

            m_Executor.Log += OnLog;
        }
示例#2
0
        public EscapeBatchExecutorCancelHandler(IBatchRunJobExecutor exec, IXApplication app, Dispatcher dispatcher)
        {
            m_Exec       = exec;
            m_App        = app;
            m_Dispatcher = dispatcher;

            m_IsCancellingInProgress = false;

            m_Hook          = new KeyboardHook(m_App.Process);
            m_Hook.KeyDown += OnKeyDown;
        }