Ejemplo n.º 1
0
        public void Terminate()
        {
            // We don't clean up watchers at this time. Let AutoCAD do so.
            //EventsWatcher.watchersOffDuty();

            // Remove the application default context menu.
            DefaultContextMenu.RemoveMe();
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            try
            {
                EventsWatcher.m_doApp      = false;
                EventsWatcher.m_doPlot     = false;
                EventsWatcher.m_doLayout   = false;
                EventsWatcher.m_doLinker   = false;
                EventsWatcher.m_doDocMan   = false;
                EventsWatcher.m_doDoc      = false;
                EventsWatcher.m_doDatabase = false;
                EventsWatcher.m_doEditor   = false;

                EventsWatcher.m_showInput = false;
                EventsWatcher.m_suppressInputDuringDrag = true;

                EventsWatcher.m_appWatcher       = null;
                EventsWatcher.m_dynLinkerWatcher = null;
                EventsWatcher.m_layoutManWatcher = null;
                EventsWatcher.m_plotWatcher      = null;
                EventsWatcher.m_editorWatcher    = null;
                EventsWatcher.m_docManWatcher    = null;
                EventsWatcher.m_docWatcher       = null;
                EventsWatcher.m_dbWatcher        = null;

                EventsWatcher.m_docManForUI = new DocManForUI();
                EventsWatcher.m_docManForUI.Do();

                // Output form
                outForm = null;

                // Add a menu item to the application default context menu.
                DefaultContextMenu.AddMe();
            }
            catch (System.Exception ex)
            {
                Helper.Message(ex);
            }
        }