public void collectAllDocs() { try { DocumentCollection m_docs = Application.DocumentManager; IEnumerator docEnum = m_docs.GetEnumerator(); while (docEnum.MoveNext()) { Document doc = (Document)docEnum.Current; addDoc(ref doc); } } catch (System.Exception ex) { BaseObjs.writeDebug(ex.Message + " EM_EventsDoc.cs: line: 45"); } }
public void collectAllDocs() { try{ DocumentCollection m_docCol = Application.DocumentManager; IEnumerator docEnum = m_docCol.GetEnumerator(); while (docEnum.MoveNext()) { Document doc = (Document)docEnum.Current; addDoc(ref doc); } } catch (System.Exception ex) { Helper.Message(ex); } }
InitializeComboBox() { IEnumerator iter = m_docs.GetEnumerator(); while (iter.MoveNext()) { Document doc = iter.Current as Document; ComboBoxItem item = new ComboBoxItem(doc); m_cmbBox.Items.Add(item); } if (m_cmbBox.Items.Count == 0) { throw new AcRx.Exception(AcRx.ErrorStatus.FileNotFound); } m_cmbBox.SelectedIndex = 0; }
public void collectAllDbs() { try { DocumentCollection m_docCol = Application.DocumentManager; IEnumerator docEnum = m_docCol.GetEnumerator(); while (docEnum.MoveNext()) { Database db = (Database)((Document)docEnum.Current).Database; addDb(ref db); } } catch (System.Exception ex) { Helper.Message(ex); } }