Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 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);
         }
     }
 }