Example #1
0
        public void Undo()
        {
            if (m_bDone == false)
            {
                return;
            }
            else
            {
                m_bDone = false;
            }
            try {
                IDictionaryEnumerator dbsEnumerator = m_dbsTable.GetEnumerator();
                while (dbsEnumerator.MoveNext())
                {
                    DictionaryEntry entry = (DictionaryEntry)dbsEnumerator.Current;

                    EM_CBoolClass c_bClassVar = (EM_CBoolClass)entry.Value;

                    if (c_bClassVar.ToString().ToLower() == "false")
                    {
                        continue;
                    }

                    m_db = (Database)entry.Key;
                    m_db.ObjectOpenedForModify -= dbCallback.m_db_ObjectOpenedForModify;
                    c_bClassVar.val             = false;
                }
            }
            catch (System.Exception ex) {
                BaseObjs.writeDebug(ex.Message + " EM_EventsDb.cs: line: 195");
            }
        }
Example #2
0
        public void Do()
        {
            if (m_bDone == false)
            {
                m_bDone = true;
            }
            else
            {
            }

            try {
                foreach (DictionaryEntry entry in m_dbsTable)
                {
                    EM_CBoolClass c_bClassVar = (EM_CBoolClass)entry.Value;

                    if (c_bClassVar.ToString().ToLower() == "true")
                    {
                        continue;
                    }
                    m_db = (Database)entry.Key;
                    m_db.ObjectOpenedForModify += dbCallback.m_db_ObjectOpenedForModify;

                    c_bClassVar.val = true;
                }
            }
            catch (System.Exception ex) {
                BaseObjs.writeDebug(ex.Message + " EM_EventsDb.cs: line: 170");
            }
        }
Example #3
0
        public void Do()
        {
            if (m_bDone == false)
            {
                m_bDone = true;
            }
            else
            {
            }

            try {
                foreach (DictionaryEntry entry in m_docsTable)
                {
                    EM_CBoolClass c_bClassVar = (EM_CBoolClass)entry.Value;

                    if (c_bClassVar.ToString().ToLower() == "true")
                    {
                        continue;
                    }
                    m_doc = (Document)entry.Key;
                    m_doc.CommandWillStart += m_doc_CommandWillStart;

                    c_bClassVar.val = true;
                }
            }
            catch (System.Exception ex) {
                BaseObjs.writeDebug(ex.Message + " EM_EventsDoc.cs: line: 88");
            }
        }
Example #4
0
        public void Undo()
        {
            if (m_bDone == false)
            {
                return;
            }
            else
            {
                m_bDone = false;
            }
            try {
                IDictionaryEnumerator docsEnumerator = m_docsTable.GetEnumerator();
                while (docsEnumerator.MoveNext())
                {
                    DictionaryEntry entry = (DictionaryEntry)docsEnumerator.Current;

                    EM_CBoolClass c_bClassVar = (EM_CBoolClass)entry.Value;

                    if (c_bClassVar.ToString().ToLower() == "false")
                    {
                        continue;
                    }

                    m_doc = (Document)entry.Key;
                    m_doc.CommandWillStart -= m_doc_CommandWillStart;

                    c_bClassVar.val = false;
                }
            }
            catch (System.Exception ex) {
                BaseObjs.writeDebug(ex.Message + " EM_EventsDoc.cs: line: 114");
            }
        }
Example #5
0
        public void UndoADb(ref Database db)
        {
            try {
                if (!m_dbsTable.ContainsKey(db))
                {
                    return;
                }
                EM_CBoolClass c_bClassVar = (EM_CBoolClass)m_dbsTable[db];
                if (c_bClassVar.ToString().ToLower() == "false")
                {
                    return;
                }

                m_db = db;
                m_db.ObjectOpenedForModify -= dbCallback.m_db_ObjectOpenedForModify;
                c_bClassVar.val             = false;
            }
            catch (System.Exception ex) {
                BaseObjs.writeDebug(ex.Message + " EM_EventsDb.cs: line: 230");
            }
        }
Example #6
0
        public void UndoADoc(ref Document doc)
        {
            try {
                if (!m_docsTable.ContainsKey(doc))
                {
                    return;
                }
                EM_CBoolClass c_bClassVar = (EM_CBoolClass)m_docsTable[doc];
                if (c_bClassVar.ToString().ToLower() == "false")
                {
                    return;
                }

                m_doc = doc;
                m_doc.CommandWillStart -= m_doc_CommandWillStart;

                c_bClassVar.val = false;
            }
            catch (System.Exception ex) {
                BaseObjs.writeDebug(ex.Message + " EM_EventsDoc.cs: line: 132");
            }
        }