Beispiel #1
0
        private void editorWatcherOnDuty()
        {
            try
            {
                if (m_editorWatcher == null)
                {
                    m_editorWatcher = new EditorEvents();
                }

                if (m_doEditor)
                {
                    m_editorWatcher.Do();
                }
                else
                {
                    m_editorWatcher.Undo();
                }

                if (m_showInput)
                {
                    m_editorWatcher.DoPoint();
                }
                else
                {
                    m_editorWatcher.UndoPoint();
                }
            }
            catch (System.Exception ex)
            {
                Helper.Message(ex);
            }
        }
Beispiel #2
0
        private void watchersOffDuty()
        {
            // Mark all watchers as off duty.
            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;

            // Have them have a rest indeed.
            appWatcherOnDuty();
            plotWatcherOnDuty();
            layoutWatcherOnDuty();
            linkerWatcherOnDuty();
            docManWatcherOnDuty();
            docWatcherOnDuty();
            dbWatcherOnDuty();
            editorWatcherOnDuty();

            // Release spaces.
            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;
        }
        private void watchersOffDuty()
        {
            // Mark all watchers as off duty.
            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;

            // Have them have a rest indeed.
            appWatcherOnDuty();
            plotWatcherOnDuty();
            layoutWatcherOnDuty();
            linkerWatcherOnDuty();
            docManWatcherOnDuty();
            docWatcherOnDuty();
            dbWatcherOnDuty();
            editorWatcherOnDuty();

            // Release spaces.
            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;
        }
        private void editorWatcherOnDuty()
        {
            try
            {
                if(m_editorWatcher == null)
                    m_editorWatcher = new EditorEvents();

                if(m_doEditor)
                    m_editorWatcher.Do();
                else
                    m_editorWatcher.Undo();

                if(m_showInput)
                    m_editorWatcher.DoPoint();
                else
                    m_editorWatcher.UndoPoint();
            }
            catch (System.Exception ex)
            {
                Helper.Message(ex);
            }
        }