public JobResultJournalVM(IBatchRunJobExecutor executor) { m_Lock = new object(); Output = new ObservableCollection <string>(); BindingOperations.EnableCollectionSynchronization(Output, m_Lock); m_Executor = executor; m_Executor.Log += OnLog; }
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; }