コード例 #1
0
 public override void Show(System.Windows.Controls.ContentControl contentControl, object writer)
 {
     YellowstonePathology.Document.Result.Data.AccessionOrderDataSheetData accessionOrderDataSheetData = YellowstonePathology.Business.Gateway.XmlGateway.GetAccessionOrderDataSheetData(this.MasterAccessionNo);
     YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheet accessionOrderDataSheet = new YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheet(accessionOrderDataSheetData);
     System.Windows.Controls.DocumentViewer documentViewer = new System.Windows.Controls.DocumentViewer();
     documentViewer.Loaded += new System.Windows.RoutedEventHandler(DocumentViewer_Loaded);
     documentViewer.Document = accessionOrderDataSheet.FixedDocument;
     contentControl.Content = documentViewer;
 }
コード例 #2
0
 public override void Show(System.Windows.Controls.ContentControl contentControl, object writer)
 {
     YellowstonePathology.Document.Result.Data.AccessionOrderDataSheetData accessionOrderDataSheetData = YellowstonePathology.Business.Gateway.XmlGateway.GetAccessionOrderDataSheetData(this.MasterAccessionNo);
     YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheet      accessionOrderDataSheet     = new YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheet(accessionOrderDataSheetData);
     System.Windows.Controls.DocumentViewer documentViewer = new System.Windows.Controls.DocumentViewer();
     documentViewer.Loaded  += new System.Windows.RoutedEventHandler(DocumentViewer_Loaded);
     documentViewer.Document = accessionOrderDataSheet.FixedDocument;
     contentControl.Content  = documentViewer;
 }