private void OpenDocument(string szDocTitle) { foreach (DockContent item in this.dockPanel1.Contents) { if (item is DocumentListNewForm) { DocumentListNewForm frm = item as DocumentListNewForm; frm.Activate(); frm.OpenDocument(szDocTitle); } } }
public void OpenDocument(MedDocInfo docInfo) { foreach (DockContent item in this.dockPanel1.Contents) { if (item is DocumentListNewForm) { DocumentListNewForm frm = item as DocumentListNewForm; frm.Activate(); frm.OpenDocument(docInfo); } } }
public DocumentListNewForm GetDocumentList() { DocumentListNewForm documentListForm = null; foreach (DockContentBase item in this.dockPanel1.Contents) { if (item is DocumentListNewForm) { documentListForm = item as DocumentListNewForm; return(documentListForm); } } return(null); }
public DocumentListNewForm GetDocumentList() { DocumentListNewForm documentListForm = this.patientPageControl1.GetDocumentList(); return(documentListForm); }