예제 #1
0
파일: EM_EventsDb.cs 프로젝트: 15831944/EM
        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");
            }
        }
예제 #2
0
파일: EM_EventsDb.cs 프로젝트: 15831944/EM
        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");
            }
        }
예제 #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");
            }
        }
예제 #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");
            }
        }
예제 #5
0
파일: EM_EventsDb.cs 프로젝트: 15831944/EM
        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");
            }
        }
예제 #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");
            }
        }