public EDrawingsPublisher() { m_PopupKiller = new PopupKiller(Process.GetCurrentProcess()); m_Control = Load(); m_Control.OnFinishedLoadingDocument += OnFinishedLoadingDocument; m_Control.OnFailedLoadingDocument += OnFailedLoadingDocument; m_Control.OnFinishedSavingDocument += OnFinishedSavingDocument; m_Control.OnFailedSavingDocument += OnFailedSavingDocument; m_Control.OnFinishedPrintingDocument += OnFinishedPrintingDocument; m_Control.OnFailedPrintingDocument += OnFailedPrintingDocument; }
public EDrawingsPublisher(EDrawingsVersion_e version) { m_Version = version; m_PopupKiller = new PopupKiller(new AppLogger()); m_PopupKiller.Start(Process.GetCurrentProcess(), TimeSpan.FromSeconds(1)); m_Control = Load(); const int eMVEnableSilentMode = 16384; m_Control.EnableFeatures = eMVEnableSilentMode; m_Control.OnFinishedLoadingDocument += OnFinishedLoadingDocument; m_Control.OnFailedLoadingDocument += OnFailedLoadingDocument; m_Control.OnFinishedSavingDocument += OnFinishedSavingDocument; m_Control.OnFailedSavingDocument += OnFailedSavingDocument; m_Control.OnFinishedPrintingDocument += OnFinishedPrintingDocument; m_Control.OnFailedPrintingDocument += OnFailedPrintingDocument; }