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); } } }